#18171E Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

Hex color #18171e graphic
A dusty purple pushed almost to black, dim and heavy with shadow. The hex code #18171e works best as a dominant base for dark mode UIs and moody branding, where white text reaches about 17.8:1 contrast. Pair it with muted gold or plum to keep it from reading flat gray.

Questions about #18171e

What is #18171e in RGB, HSL and CMYK?
In RGB, #18171e is rgb(24, 23, 30), in HSL hsl(249, 13%, 10%) and in CMYK 20%, 23%, 0%, 88%. Browse more shades of black with names and hex codes.
What colors pair well with #18171e?
Muted gold, plum, and dusty lavender all lift #18171e without stealing its depth. For text on top, white is the safest choice at roughly 17.8:1 contrast.
Does #18171e work as a background color?
Yes. Its very low lightness makes it a solid base for dark mode interfaces and moody layouts. Keep fine details in lighter tones, since the color itself hides them.
Is #18171e readable on white or black?
#18171e has a 17.79:1 contrast ratio on white and 1.18:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.