Color #2a1f3e
A muted very dark purple.
Conversions
#2a1f3e
rgb(42, 31, 62)
hsl(261.3, 33.3%, 18.2%)
hsv(261.3, 50%, 24.3%)
cmyk(32.3%, 50%, 0%, 75.7%)
lab(14.51, 13.4, -17.97)
lch(14.51, 22.42, 306.71)
oklch(26.8%, 0.0574, 298.84)
hwb(261.3, 12.2%, 75.7%)
Harmony colors
Accessibility
White text reads better on this background (15.4:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#262638 · ΔE 7.4
Deuteranopia
#262737 · ΔE 8.7
Tritanopia
#2a3332 · ΔE 20.4
Achromatopsia
#252525 · ΔE 16.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a1f3e;
bg-[#2a1f3e]
Related colors
Frequently asked questions
#2a1f3e (#2a1f3e) is rgb(42, 31, 62) in RGB.
No, #2a1f3e 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 #2a1f3e, or check how it holds up for accessibility.