Color #2a1f2e
A muted very dark purple.
Conversions
#2a1f2e
rgb(42, 31, 46)
hsl(284, 19.5%, 15.1%)
hsv(284, 32.6%, 18%)
cmyk(8.7%, 32.6%, 0%, 82%)
lab(13.65, 8.8, -7.95)
lch(13.65, 11.86, 317.91)
oklch(25.9%, 0.0316, 316.92)
hwb(284, 12.2%, 82%)
Harmony colors
Accessibility
White text reads better on this background (15.74:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#26262b · ΔE 8.8
Deuteranopia
#26272a · ΔE 10.4
Tritanopia
#2a2828 · ΔE 10.7
Achromatopsia
#232323 · ΔE 11.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a1f2e;
bg-[#2a1f2e]
Related colors
Frequently asked questions
#2a1f2e (#2a1f2e) is rgb(42, 31, 46) in RGB.
No, #2a1f2e 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 #2a1f2e, or check how it holds up for accessibility.