#171312 Hex Color

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

Hex color #171312 graphic
A near-black shade of grey, #171312 carries a faint warm undertone that keeps it from reading flat. It suits dark mode interfaces, moody backgrounds, and typography where a true black feels too harsh. Pair it with soft cream or muted gold text for strong contrast, and let warmer neutrals sit beside it to soften the overall look.

Questions about #171312

What is #171312 in RGB, HSL and CMYK?
In RGB, #171312 is rgb(23, 19, 18), in HSL hsl(12, 12%, 8%) and in CMYK 0%, 17%, 22%, 91%. Browse more shades of black with names and hex codes.
What colors pair well with #171312?
Soft cream, muted gold, and warm taupe all sit comfortably beside #171312. The near-black base flatters light neutrals without the harshness of a true black.
Is #171312 a good background color for dark mode UI?
Yes. Its slightly lifted, warm-grey base is gentler on the eyes than pure black, which helps reduce glare while keeping white or cream text fully readable.
Is #171312 readable on white or black?
#171312 has a 18.44:1 contrast ratio on white and 1.13: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.