Color #2f1f4f
A moderately saturated dark purple.
Conversions
#2f1f4f
rgb(47, 31, 79)
hsl(260, 43.6%, 21.6%)
hsv(260, 60.8%, 31%)
cmyk(40.5%, 60.8%, 0%, 69%)
lab(16.25, 20.28, -26.92)
lch(16.25, 33.7, 306.99)
oklch(28.7%, 0.0849, 295.99)
hwb(260, 12.2%, 69%)
Harmony colors
Accessibility
White text reads better on this background (14.69:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#292947 · ΔE 6.9
Deuteranopia
#2a2b45 · ΔE 8.5
Tritanopia
#2e3f3e · ΔE 23.8
Achromatopsia
#282828 · ΔE 20.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2f1f4f;
bg-[#2f1f4f]
Related colors
Frequently asked questions
#2f1f4f (#2f1f4f) is rgb(47, 31, 79) in RGB.
No, #2f1f4f 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 #2f1f4f, or check how it holds up for accessibility.