#171718 Hex Color

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

Hex color #171718 graphic
#171718 is an ultra-dark grey that anchors UI designs with serious stability. It serves as a softer, more approachable alternative to harsh pure black for dark mode backgrounds. White text stands out sharply here with a 17.9:1 contrast ratio, ensuring excellent readability for even the smallest body copy. The hex code for this moody, professional neutral is #171718.

Questions about #171718

What is #171718 in RGB, HSL and CMYK?
In RGB, #171718 is rgb(23, 23, 24), in HSL hsl(240, 2%, 9%) and in CMYK 4%, 4%, 0%, 91%. Browse more shades of black with names and hex codes.
Why use #171718 instead of pure black for dark mode?
Using #171718 instead of pure black reduces eye strain and provides a more natural, sophisticated depth to digital interfaces. It maintains high contrast against white text while preventing the stark, jarring vibration often caused by total darkness in UI design.
What colors pair best with #171718 for professional UI?
This shade works effectively with crisp whites for high-contrast accessibility, or soft cool greys for subtle layering. For accent elements, it allows vibrant colors like electric blue or vivid orange to pop significantly without competing with the background.
Is #171718 readable on white or black?
#171718 has a 17.91:1 contrast ratio on white and 1.17: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.