#171A1F Hex Color
Grounded near-black with deep blue undertones

This dusty, near-black shade carries a muted blue undertone that feels serious and grounded. Hex code #171a1f functions as an excellent alternative to pure black for modern dark mode interfaces. Because it provides a 17.4:1 contrast ratio against white text, it ensures high readability for small, functional UI elements. Use this color as a base to anchor moody or professional digital layouts.
Questions about #171a1f
What is #171a1f in RGB, HSL and CMYK?
In RGB, #171a1f is rgb(23, 26, 31), in HSL hsl(218, 15%, 11%) and in CMYK 26%, 16%, 0%, 88%. Browse more shades of black with names and hex codes.
Is #171a1f a better choice than pure black for website UI?
Using #171a1f is significantly better for modern interfaces because it reduces eye strain caused by the harsh contrast of pure black against white. The subtle blue undertone makes the color feel more premium and grounded, preventing the flat appearance often seen with standard black.
What colors pair well with #171a1f for branding?
This shade functions as a neutral anchor, allowing you to pair it effectively with high-contrast accent colors like electric blue or warm gold to create visual interest. Because #171a1f is so dark, avoid pairing it with other dark hues that lack sufficient contrast for readability.
Is #171a1f readable on white or black?
#171a1f has a 17.44:1 contrast ratio on white and 1.20: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.