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

This dark, near-black gray brings a moody tone to digital interfaces. It acts as a stable background for minimal designs because white text achieves a 16.3:1 contrast ratio against it. The hex code for this shade is #1f2021. Use it to replace stark black with a sophisticated neutral that anchors your typography without feeling heavy or overwhelming.
Questions about #1f2021
What is #1f2021 in RGB, HSL and CMYK?
In RGB, #1f2021 is rgb(31, 32, 33), in HSL hsl(210, 3%, 13%) and in CMYK 6%, 3%, 0%, 87%. Browse more shades of black with names and hex codes.
Why is #1f2021 better than pure black for UI design?
Using #1f2021 provides a softer visual contrast that reduces eye strain on digital screens while maintaining high readability. It anchors your layout and prevents the harsh, vibrating edges often caused by stark black text on bright white backgrounds.
What colors pair well with #1f2021?
This shade works effectively with crisp whites, muted slate blues, or warm terracotta tones to create a balanced palette. Because it is a neutral near-black, it serves as an excellent anchor for both vibrant accent colors and monochromatic professional designs.
Is #1f2021 readable on white or black?
#1f2021 has a 16.31:1 contrast ratio on white and 1.28: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.