Color #3a2866
A moderately saturated dark blue.
Conversions
#3a2866
rgb(58, 40, 102)
hsl(257.4, 43.7%, 27.8%)
hsv(257.4, 60.8%, 40%)
cmyk(43.1%, 60.8%, 0%, 60%)
lab(21.49, 24.5, -33.74)
lch(21.49, 41.7, 305.98)
oklch(33.4%, 0.1045, 293.28)
hwb(257.4, 15.7%, 60%)
Harmony colors
Accessibility
White text reads better on this background (12.54:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#33335c · ΔE 6.3
Deuteranopia
#343559 · ΔE 7.7
Tritanopia
#395250 · ΔE 26
Achromatopsia
#343434 · ΔE 22.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #3a2866;
bg-[#3a2866]
Related colors
Frequently asked questions
#3a2866 (#3a2866) is rgb(58, 40, 102) in RGB.
No, #3a2866 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 #3a2866, or check how it holds up for accessibility.