Color #342e47
A muted dark blue.
Conversions
#342e47
rgb(52, 46, 71)
hsl(254.4, 21.4%, 22.9%)
hsv(254.4, 35.2%, 27.8%)
cmyk(26.8%, 35.2%, 0%, 72.2%)
lab(20.59, 9.1, -14.59)
lch(20.59, 17.2, 301.95)
oklch(31.9%, 0.0445, 294.72)
hwb(254.4, 18%, 72.2%)
Harmony colors
Accessibility
White text reads better on this background (12.9:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#313142 · ΔE 4.8
Deuteranopia
#323241 · ΔE 5.7
Tritanopia
#343e3d · ΔE 18
Achromatopsia
#323232 · ΔE 13.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #342e47;
bg-[#342e47]
Related colors
Frequently asked questions
#342e47 (#342e47) is rgb(52, 46, 71) in RGB.
No, #342e47 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 #342e47, or check how it holds up for accessibility.