#212327 Hex Color
Online color picker to view shades, tints, color codes, and complementary colors

This dark, neutral grey functions as a softer alternative to pure black. Because white text maintains a strong 15.7:1 contrast ratio against it, #212327 is a reliable choice for dark mode UI backgrounds. Use this hex code to anchor minimal layouts or moody branding without the starkness of true black. It grounds compositions while keeping a professional, understated appearance.
Questions about #212327
What is #212327 in RGB, HSL and CMYK?
In RGB, #212327 is rgb(33, 35, 39), in HSL hsl(220, 8%, 14%) and in CMYK 15%, 10%, 0%, 85%.
Why is #212327 a better choice than pure black for UI backgrounds?
Using #212327 creates a more natural visual depth because pure black rarely exists in real-world lighting conditions. This specific grey reduces eye strain during long periods of reading while maintaining excellent accessibility standards for white text.
What colors pair well with the deep grey of #212327?
Because #212327 is a neutral base, it works beautifully with vibrant accent colors like electric blue or warm gold for high-impact buttons. For a more subtle, professional look, try pairing it with muted sage or cool-toned slate blue accents.
Is #212327 readable on white or black?
#212327 has a 15.73:1 contrast ratio on white and 1.33: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.