Color #342156
A moderately saturated dark purple.
Conversions
#342156
rgb(52, 33, 86)
hsl(261.5, 44.5%, 23.3%)
hsv(261.5, 61.6%, 33.7%)
cmyk(39.5%, 61.6%, 0%, 66.3%)
lab(17.87, 22.53, -29.02)
lch(17.87, 36.74, 307.82)
oklch(30.2%, 0.0924, 297.04)
hwb(261.5, 12.9%, 66.3%)
Harmony colors
Accessibility
White text reads better on this background (14.02:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#2d2d4d · ΔE 7.5
Deuteranopia
#2e2f4b · ΔE 8.9
Tritanopia
#334543 · ΔE 24.8
Achromatopsia
#2c2c2c · ΔE 21.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342156;
bg-[#342156]
Related colors
Frequently asked questions
#342156 (#342156) is rgb(52, 33, 86) in RGB.
No, #342156 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 #342156, or check how it holds up for accessibility.