Color #342d4a
A muted dark blue.
Conversions
#342d4a
rgb(52, 45, 74)
hsl(254.5, 24.4%, 23.3%)
hsv(254.5, 39.2%, 29%)
cmyk(29.7%, 39.2%, 0%, 71%)
lab(20.44, 10.68, -16.85)
lch(20.44, 19.95, 302.37)
oklch(31.8%, 0.0514, 294.37)
hwb(254.5, 17.6%, 71%)
Harmony colors
Accessibility
White text reads better on this background (12.96:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#313144 · ΔE 5.4
Deuteranopia
#323243 · ΔE 6.3
Tritanopia
#343f3e · ΔE 19.5
Achromatopsia
#313131 · ΔE 15.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342d4a;
bg-[#342d4a]
Related colors
Frequently asked questions
#342d4a (#342d4a) is rgb(52, 45, 74) in RGB.
No, #342d4a 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 #342d4a, or check how it holds up for accessibility.