Color #342b57
A muted dark blue.
Conversions
#342b57
rgb(52, 43, 87)
hsl(252.3, 33.8%, 25.5%)
hsv(252.3, 50.6%, 34.1%)
cmyk(40.2%, 50.6%, 0%, 65.9%)
lab(20.62, 16.08, -25.29)
lch(20.62, 29.97, 302.45)
oklch(32.2%, 0.0764, 290.85)
hwb(252.3, 16.9%, 65.9%)
Harmony colors
Accessibility
White text reads better on this background (12.89:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#30304f · ΔE 4.8
Deuteranopia
#31314d · ΔE 5.8
Tritanopia
#344846 · ΔE 24.3
Achromatopsia
#323232 · ΔE 19.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342b57;
bg-[#342b57]
Related colors
Frequently asked questions
#342b57 (#342b57) is rgb(52, 43, 87) in RGB.
No, #342b57 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 #342b57, or check how it holds up for accessibility.