Color #1f1a20
A nearly neutral, gray-leaning very dark magenta.
Conversions
#1f1a20
rgb(31, 26, 32)
hsl(290, 10.3%, 11.4%)
hsv(290, 18.8%, 12.5%)
cmyk(3.1%, 18.8%, 0%, 87.5%)
lab(10.06, 3.92, -3.24)
lch(10.06, 5.09, 320.43)
oklch(22.6%, 0.0137, 320.62)
hwb(290, 10.2%, 87.5%)
Harmony colors
Accessibility
White text reads better on this background (17.12:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1d1d1f · ΔE 4.7
Deuteranopia
#1d1e1e · ΔE 6.5
Tritanopia
#1f1e1d · ΔE 6.1
Achromatopsia
#1c1c1c · ΔE 5.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f1a20;
bg-[#1f1a20]
Related colors
Frequently asked questions
#1f1a20 (#1f1a20) is rgb(31, 26, 32) in RGB.
No, #1f1a20 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #1f1a20, or check how it holds up for accessibility.