Color #2a1f28
A muted very dark magenta.
Conversions
#2a1f28
rgb(42, 31, 40)
hsl(310.9, 15.1%, 14.3%)
hsv(310.9, 26.2%, 16.5%)
cmyk(0%, 26.2%, 4.8%, 83.5%)
lab(13.38, 7.3, -4.01)
lch(13.38, 8.33, 331.22)
oklch(25.6%, 0.0232, 332.55)
hwb(310.9, 12.2%, 83.5%)
Harmony colors
Accessibility
White text reads better on this background (15.85:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#262626 · ΔE 9.3
Deuteranopia
#262726 · ΔE 10.8
Tritanopia
#2a2424 · ΔE 6.5
Achromatopsia
#222222 · ΔE 9.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #2a1f28;
bg-[#2a1f28]
Related colors
Frequently asked questions
#2a1f28 (#2a1f28) is rgb(42, 31, 40) in RGB.
No, #2a1f28 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 #2a1f28, or check how it holds up for accessibility.