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

This near-black grey provides a serious, grounded alternative to pure black for UI backgrounds. Because the hex code #1f1e20 retains slight warmth, it pairs better with warm-toned accents than harsh, high-contrast monochrome palettes. It offers high readability for white text, maintaining a 16.6:1 contrast ratio that keeps small body type crisp and clear for any interface.
Questions about #1f1e20
What is #1f1e20 in RGB, HSL and CMYK?
In RGB, #1f1e20 is rgb(31, 30, 32), in HSL hsl(270, 3%, 12%) and in CMYK 3%, 6%, 0%, 87%. Browse more shades of black with names and hex codes.
Is #1f1e20 a good choice for UI text backgrounds?
#1f1e20 is an excellent choice for modern interfaces because it provides a softer, less harsh alternative to pure black while maintaining high contrast. It creates a comfortable, sophisticated viewing experience that keeps white or light-toned body text sharp and readable.
What kind of color palette works best with #1f1e20?
Because #1f1e20 contains slight warm undertones, it harmonizes beautifully with terracotta, soft beige, or warm metallic accents. Avoid pairing it with cool, icy blues or harsh neons, as these often clash with the subtle warmth inherent in this shade.
Is #1f1e20 readable on white or black?
#1f1e20 has a 16.60: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.