Color #2f1438
A moderately saturated very dark purple.
Conversions
#2f1438
rgb(47, 20, 56)
hsl(285, 47.4%, 14.9%)
hsv(285, 64.3%, 22%)
cmyk(16.1%, 64.3%, 0%, 78%)
lab(11.89, 20.88, -17.82)
lch(11.89, 27.45, 319.52)
oklch(24.9%, 0.0729, 317)
hwb(285, 7.8%, 78%)
Harmony colors
Accessibility
White text reads better on this background (16.43:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#262632 · ΔE 14.2
Deuteranopia
#272930 · ΔE 17.2
Tritanopia
#2e2c2b · ΔE 19.9
Achromatopsia
#1f1f1f · ΔE 19.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f1438;
bg-[#2f1438]
Related colors
Frequently asked questions
#2f1438 (#2f1438) is rgb(47, 20, 56) in RGB.
No, #2f1438 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 #2f1438, or check how it holds up for accessibility.