Color #1f0c3e
A moderately saturated very dark purple.
Conversions
#1f0c3e
rgb(31, 12, 62)
hsl(262.8, 67.6%, 14.5%)
hsv(262.8, 80.6%, 24.3%)
cmyk(50%, 80.6%, 0%, 75.7%)
lab(8.15, 23.14, -28.27)
lch(8.15, 36.53, 309.3)
oklch(21.8%, 0.0895, 295.33)
hwb(262.8, 4.7%, 75.7%)
Harmony colors
Accessibility
White text reads better on this background (17.79:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#181836 · ΔE 7.4
Deuteranopia
#191b34 · ΔE 9.5
Tritanopia
#1e2f2e · ΔE 23.9
Achromatopsia
#181818 · ΔE 21.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #1f0c3e;
bg-[#1f0c3e]
Related colors
Frequently asked questions
#1f0c3e (#1f0c3e) is rgb(31, 12, 62) in RGB.
No, #1f0c3e 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 #1f0c3e, or check how it holds up for accessibility.