Color #340731
A vivid, highly saturated very dark magenta.
Conversions
#340731
rgb(52, 7, 49)
hsl(304, 76.3%, 11.6%)
hsv(304, 86.5%, 20.4%)
cmyk(0%, 86.5%, 5.8%, 79.6%)
lab(9.83, 27.77, -15.94)
lch(9.83, 32.02, 330.14)
oklch(23.5%, 0.0905, 330.97)
hwb(304, 2.7%, 79.6%)
Harmony colors
Accessibility
White text reads better on this background (17.2:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#27272b · ΔE 20.2
Deuteranopia
#292c29 · ΔE 27.4
Tritanopia
#332523 · ΔE 18.5
Achromatopsia
#1b1b1b · ΔE 21.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #340731;
bg-[#340731]
Related colors
Frequently asked questions
#340731 (#340731) is rgb(52, 7, 49) in RGB.
No, #340731 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 #340731, or check how it holds up for accessibility.