#18181B color
The swatch above shows #18181B 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.
#18181B is a very dark, desaturated grey, closest to the CSS named color black (#000000).
It is also a Tailwind CSS default: zinc-900. That means you can write bg-zinc-900 or text-zinc-900 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #18181B |
| RGB | rgb(24, 24, 27) |
| HSL | hsl(240, 6%, 10%) |
| CMYK | cmyk(11%, 11%, 0%, 89%) |
| Decimal | 1579035 |
| CSS | color: #18181B; |
| Android | 0xFF18181B |
| Swift | UIColor(red: 0.094, green: 0.094, blue: 0.106, alpha: 1) |
Accessibility and contrast
| White text on #18181B | 17.72:1 — AA pass · AA large pass · AAA pass |
| Black text on #18181B | 1.19:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
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 #18181B
Each swatch keeps the hue and saturation of #18181B and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #18181B
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #18181B in code
/* CSS */
.element { color: #18181B; background-color: #18181B; }
.element { color: rgb(24 24 27); }
.element { color: hsl(240 6% 10%); }
/* Tailwind */
<div class="bg-zinc-900 text-white">
/* SCSS variable */
$brand: #18181B;
Frequently asked questions
What color is #18181B?
#18181B is a very dark, desaturated grey. Its hue sits at 240° on the color wheel, with 6% saturation and 10% lightness.
What is #18181B in RGB?
#18181B converts to rgb(24, 24, 27) — 24 red, 24 green and 27 blue.
What is #18181B in CMYK?
Approximately cmyk(11%, 11%, 0%, 89%). 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 #18181B be white or black?
White gives the better contrast ratio (17.72:1 versus 1.19:1).
What is the complementary color of #18181B?
#1B1B18 — the hue directly opposite #18181B on the color wheel.