Color #342b50
A muted dark blue.
Conversions
#342b50
rgb(52, 43, 80)
hsl(254.6, 30.1%, 24.1%)
hsv(254.6, 46.3%, 31.4%)
cmyk(35%, 46.2%, 0%, 68.6%)
lab(20.19, 13.88, -21.29)
lch(20.19, 25.41, 303.1)
oklch(31.8%, 0.0651, 293.53)
hwb(254.6, 16.9%, 68.6%)
Harmony colors
Accessibility
White text reads better on this background (13.06:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#303049 · ΔE 5.5
Deuteranopia
#313147 · ΔE 6.6
Tritanopia
#344341 · ΔE 22.7
Achromatopsia
#313131 · ΔE 17.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342b50;
bg-[#342b50]
Related colors
Frequently asked questions
#342b50 (#342b50) is rgb(52, 43, 80) in RGB.
No, #342b50 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 #342b50, or check how it holds up for accessibility.