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

This near-black shade carries a dusty, purple undertone that feels more complex than standard charcoal. Because it sits at the edge of visibility, the hex code #1b1b22 works best as a sophisticated background for dark mode interfaces. It pairs beautifully with crisp white text, as the high contrast provides excellent readability while maintaining a moody, serious atmosphere for modern digital branding.
Questions about #1b1b22
What is #1b1b22 in RGB, HSL and CMYK?
In RGB, #1b1b22 is rgb(27, 27, 34), in HSL hsl(240, 11%, 12%) and in CMYK 21%, 21%, 0%, 87%.
Why does #1b1b22 look more purple than standard black?
The #1b1b22 hex color contains subtle violet undertones that prevent it from appearing flat, giving it a richer, more complex depth than a pure neutral black. These undertones become visible when placed against stark white or cool-toned gray elements.
What colors pair best with #1b1b22 for UI design?
High-contrast whites and light grays are the best companions for #1b1b22 because they ensure maximum readability in dark mode interfaces. To add visual interest, try accents in muted mustard or soft teal, which pop against the dark, purple-leaning base without overwhelming the design.
Is #1b1b22 readable on white or black?
#1b1b22 has a 17.12:1 contrast ratio on white and 1.22: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.