Color #3a2147
A muted dark purple.
Conversions
#3a2147
rgb(58, 33, 71)
hsl(279.5, 36.5%, 20.4%)
hsv(279.5, 53.5%, 27.8%)
cmyk(18.3%, 53.5%, 0%, 72.2%)
lab(17.66, 20.1, -19.13)
lch(17.66, 27.75, 316.42)
oklch(29.8%, 0.0729, 313.11)
hwb(279.5, 12.9%, 72.2%)
Harmony colors
Accessibility
White text reads better on this background (14.11:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#313140 · ΔE 12.8
Deuteranopia
#32343e · ΔE 15.7
Tritanopia
#393a39 · ΔE 20.6
Achromatopsia
#2b2b2b · ΔE 19.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #3a2147;
bg-[#3a2147]
Related colors
Frequently asked questions
#3a2147 (#3a2147) is rgb(58, 33, 71) in RGB.
No, #3a2147 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 #3a2147, or check how it holds up for accessibility.