Toolman

#111827 color

#111827#111827

The swatch above shows #111827 with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.

#111827 is a very dark, moderately saturated blue, closest to the CSS named color black (#000000).

It is also a Tailwind CSS default: gray-900. That means you can write bg-gray-900 or text-gray-900 directly, with no arbitrary-value brackets and no entry in your theme config.

Color values

HEX#111827
RGBrgb(17, 24, 39)
HSLhsl(221, 39%, 11%)
CMYKcmyk(56%, 38%, 0%, 85%)
Decimal1120295
CSScolor: #111827;
Android0xFF111827
SwiftUIColor(red: 0.067, green: 0.094, blue: 0.153, alpha: 1)

Accessibility and contrast

White text on #11182717.74:1 — AA pass · AA large pass · AAA pass
Black text on #1118271.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 #111827

Each swatch keeps the hue and saturation of #111827 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 #111827

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 #111827 in code

/* CSS */
.element { color: #111827; background-color: #111827; }
.element { color: rgb(17 24 39); }
.element { color: hsl(221 39% 11%); }

/* Tailwind */
<div class="bg-gray-900 text-white">

/* SCSS variable */
$brand: #111827;

Frequently asked questions

What color is #111827?

#111827 is a very dark, moderately saturated blue. Its hue sits at 221° on the color wheel, with 39% saturation and 11% lightness.

What is #111827 in RGB?

#111827 converts to rgb(17, 24, 39) — 17 red, 24 green and 39 blue.

What is #111827 in CMYK?

Approximately cmyk(56%, 38%, 0%, 85%). 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 #111827 be white or black?

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

What is the complementary color of #111827?

#272011 — the hue directly opposite #111827 on the color wheel.

Convert any color → · Browse all colors