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

This near-black grey serves as a sophisticated alternative to pure black. Because it has such low chroma, the hex code #1f1e21 provides a stable, neutral base for dark mode interfaces. Designers often prefer it because it offers excellent readability for white text, achieving a 16.6:1 contrast ratio. Use it for typography or minimalist backgrounds when you need visual grounding without the harshness of absolute black.
Questions about #1f1e21
What is #1f1e21 in RGB, HSL and CMYK?
In RGB, #1f1e21 is rgb(31, 30, 33), in HSL hsl(260, 5%, 12%) and in CMYK 6%, 9%, 0%, 87%.
Why is #1f1e21 better for dark mode than pure black?
Using #1f1e21 creates a more natural visual experience that reduces eye strain compared to the harsh contrast of pure black. It provides enough depth to define interface elements while allowing white text to appear significantly more legible and comfortable to read.
What colors pair well with #1f1e21 for web design?
Is #1f1e21 readable on white or black?
#1f1e21 has a 16.58:1 contrast ratio on white and 1.26: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.