#222227 Hex Color

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

Hex color #222227 graphic
This near-black grey sits on the edge of complete neutrality, carrying a serious, moody character. The hex code #222227 offers an excellent foundation for dark mode interfaces because it provides strong contrast for white typography. While it can feel slightly dusty, it functions best as a dominant base layer when paired with sharp, high-saturation accent colors to prevent a flat, uninspiring result.

Questions about #222227

What is #222227 in RGB, HSL and CMYK?
In RGB, #222227 is rgb(34, 34, 39), in HSL hsl(240, 7%, 14%) and in CMYK 13%, 13%, 0%, 85%. Browse more shades of black with names and hex codes.
Why is #222227 a strong choice for modern dark mode UI?
This near-black hue provides superior readability for white typography compared to pure black, reducing eye strain while maintaining a sleek, professional appearance. It anchors complex interfaces, allowing sharp, vibrant accent colors to pop without overwhelming the user or feeling flat.
What accent colors work best with the deep tone of #222227?
High-saturation colors create the most dynamic impact against this muted base, preventing it from appearing dusty or dull. Try pairing it with electric blue, vibrant lime green, or a sharp magenta to ensure your design elements feel intentional and energetic.
Is #222227 readable on white or black?
#222227 has a 15.83:1 contrast ratio on white and 1.32: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.