Color #342a48
A muted dark purple.
Conversions
#342a48
rgb(52, 42, 72)
hsl(260, 26.3%, 22.4%)
hsv(260, 41.7%, 28.2%)
cmyk(27.8%, 41.7%, 0%, 71.8%)
lab(19.45, 12.17, -17.05)
lch(19.45, 20.95, 305.52)
oklch(31%, 0.054, 298.56)
hwb(260, 16.5%, 71.8%)
Harmony colors
Accessibility
White text reads better on this background (13.37:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#303042 · ΔE 6.9
Deuteranopia
#313141 · ΔE 7.7
Tritanopia
#343d3c · ΔE 19.7
Achromatopsia
#2f2f2f · ΔE 15.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342a48;
bg-[#342a48]
Related colors
Frequently asked questions
#342a48 (#342a48) is rgb(52, 42, 72) in RGB.
No, #342a48 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 #342a48, or check how it holds up for accessibility.