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

This dark, desaturated grey provides a stable foundation for minimal UI and typography. As a near-black, the hex code #1f1f21 creates a moody, professional atmosphere without the harshness of true black. It works perfectly for dark mode backgrounds, where white text remains highly legible against the deep tone. Pair it with soft, muted accent colors to break up its heavy neutrality.
Questions about #1f1f21
What is #1f1f21 in RGB, HSL and CMYK?
In RGB, #1f1f21 is rgb(31, 31, 33), in HSL hsl(240, 3%, 13%) and in CMYK 6%, 6%, 0%, 87%. Browse more shades of black with names and hex codes.
When should I choose #1f1f21 over pure black for my UI?
Use #1f1f21 to create a softer, more sophisticated experience that reduces eye strain in dark mode interfaces. Pure black often feels harsh, while this desaturated grey maintains high readability against white text, offering a grounded, professional aesthetic perfect for typography and expansive background layers.
Which accent colors work best alongside #1f1f21?
Pair #1f1f21 with soft, muted accent tones to maintain balance without overwhelming the design. It works well with dusty blue or sage green, which add subtle visual interest while allowing the deep, near-black foundation to remain the primary focus of your overall design.
Is #1f1f21 readable on white or black?
#1f1f21 has a 16.45:1 contrast ratio on white and 1.27: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.