Toolman

#0F172A color

#0F172A#0F172A

#0F172A is a very dark, moderately saturated blue, closest to the CSS named color midnightblue (#191970).

Color values

HEX#0F172A
RGBrgb(15, 23, 42)
HSLhsl(222, 47%, 11%)
CMYKcmyk(64%, 45%, 0%, 84%)
Decimal988970
CSScolor: #0F172A;
Android0xFF0F172A
SwiftUIColor(red: 0.059, green: 0.090, blue: 0.165, alpha: 1)

Accessibility and contrast

White text on #0F172A17.85:1 — AA pass · AA large pass · AAA pass
Black text on #0F172A1.18:1 — AA fail · AA large fail · AAA fail
Recommended text colorwhite

WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).

Tints and shades of #0F172A

Each swatch keeps the hue and saturation of #0F172A and varies only lightness — the quickest way to build a usable scale from a single brand color.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #0F172A

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

Using #0F172A in code

/* CSS */
.element { color: #0F172A; background-color: #0F172A; }
.element { color: rgb(15 23 42); }
.element { color: hsl(222 47% 11%); }

/* Tailwind arbitrary value */
<div class="bg-[#0F172A] text-white">

/* SCSS variable */
$brand: #0F172A;

Frequently asked questions

What color is #0F172A?

#0F172A is a very dark, moderately saturated blue. Its hue sits at 222° on the color wheel, with 47% saturation and 11% lightness.

What is #0F172A in RGB?

#0F172A converts to rgb(15, 23, 42) — 15 red, 23 green and 42 blue.

What is #0F172A in CMYK?

Approximately cmyk(64%, 45%, 0%, 84%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.

Should text on #0F172A be white or black?

White gives the better contrast ratio (17.85:1 versus 1.18:1).

What is the complementary color of #0F172A?

#29210F — the hue directly opposite #0F172A on the color wheel.

Convert any color → · Browse all colors