#171820 Hex Color

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

Hex color #171820 graphic
#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?
This ashy indigo creates a modern, sophisticated aesthetic when paired with bright white or soft, neutral cream accents for high readability. For a more vibrant look, incorporate muted mustard or dusty rose tones to create a balanced, contemporary color palette.
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.