Color #1f1229
A muted very dark purple.
Conversions
#1f1229
rgb(31, 18, 41)
hsl(273.9, 39%, 11.6%)
hsv(273.9, 56.1%, 16.1%)
cmyk(24.4%, 56.1%, 0%, 83.9%)
lab(7.99, 12.44, -13.17)
lch(7.99, 18.12, 313.37)
oklch(21.2%, 0.0471, 308.89)
hwb(273.9, 7.1%, 83.9%)
Harmony colors
Accessibility
White text reads better on this background (17.84:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#1a1a25 · ΔE 9.2
Deuteranopia
#1b1c24 · ΔE 11.2
Tritanopia
#1e2120 · ΔE 17.2
Achromatopsia
#171717 · ΔE 15
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f1229;
bg-[#1f1229]
Related colors
Frequently asked questions
#1f1229 (#1f1229) is rgb(31, 18, 41) in RGB.
No, #1f1229 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 #1f1229, or check how it holds up for accessibility.