Color #342c41
A muted dark purple.
Conversions
#342c41
rgb(52, 44, 65)
hsl(262.9, 19.3%, 21.4%)
hsv(262.9, 32.3%, 25.5%)
cmyk(20%, 32.3%, 0%, 74.5%)
lab(19.69, 8.79, -11.9)
lch(19.69, 14.79, 306.45)
oklch(31.1%, 0.0384, 301.71)
hwb(262.9, 17.3%, 74.5%)
Harmony colors
Accessibility
White text reads better on this background (13.27:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#31313d · ΔE 6.4
Deuteranopia
#31323c · ΔE 7.7
Tritanopia
#343938 · ΔE 15.5
Achromatopsia
#303030 · ΔE 12.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342c41;
bg-[#342c41]
Related colors
Frequently asked questions
#342c41 (#342c41) is rgb(52, 44, 65) in RGB.
No, #342c41 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 #342c41, or check how it holds up for accessibility.