#171820 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

#171820 is an ashy, desaturated indigo that mimics a late night sky. Because it is so dark and matte, it works best as a moody, spacious background color rather than for text or fine details. This hex code provides excellent contrast for white typography, making it a reliable choice for dark mode UI designs that require structure and professional depth.
Questions about #171820
What is #171820 in RGB, HSL and CMYK?
In RGB, #171820 is rgb(23, 24, 32), in HSL hsl(233, 16%, 11%) and in CMYK 28%, 25%, 0%, 87%. Browse more shades of black with names and hex codes.
Where should I use #171820 in UI design?
#171820 functions best as a spacious background color that replaces standard black, adding subtle, professional depth to dark mode interfaces. Because of its deep saturation, use it to ground your layout while maintaining high legibility for white or light-toned typography.
What colors pair well with #171820?
Is #171820 readable on white or black?
#171820 has a 17.67: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.