#312227 Hex Color
A sophisticated, muted pink bordering on black

This dusty, muted shade of pink sits on the edge of black. With its serious, moody character, the hex code #312227 works best as a dark background for modern, high-contrast interfaces. Because it offers an excellent 15.1:1 contrast ratio with white text, it remains perfectly readable for any layout. Use it as a sophisticated, softer alternative to standard pure black.
Questions about #312227
What is #312227 in RGB, HSL and CMYK?
In RGB, #312227 is rgb(49, 34, 39), in HSL hsl(340, 18%, 16%) and in CMYK 0%, 31%, 20%, 81%. Browse more shades of black with names and hex codes.
Why use #312227 instead of pure black?
#312227 provides a softer, more sophisticated aesthetic for dark interfaces while maintaining high contrast. It avoids the harshness of pure black by introducing warm, dusty pink undertones that feel more organic and less flat on digital screens.
What colors pair well with #312227?
Is #312227 readable on white or black?
#312227 has a 15.12:1 contrast ratio on white and 1.38: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.