Color #2d1f42
A muted very dark purple.
Conversions
#2d1f42
rgb(45, 31, 66)
hsl(264, 36.1%, 19%)
hsv(264, 53%, 25.9%)
cmyk(31.8%, 53%, 0%, 74.1%)
lab(15.12, 15.64, -19.78)
lch(15.12, 25.22, 308.33)
oklch(27.5%, 0.0645, 300.66)
hwb(264, 12.2%, 74.1%)
Harmony colors
Accessibility
White text reads better on this background (15.15:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#28273c · ΔE 7.4
Deuteranopia
#28293a · ΔE 9.7
Tritanopia
#2c3635 · ΔE 21.6
Achromatopsia
#262626 · ΔE 18
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2d1f42;
bg-[#2d1f42]
Related colors
Frequently asked questions
#2d1f42 (#2d1f42) is rgb(45, 31, 66) in RGB.
No, #2d1f42 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 #2d1f42, or check how it holds up for accessibility.