Color #502f97
A moderately saturated dark blue.
Conversions
#502f97
rgb(80, 47, 151)
hsl(259, 52.5%, 38.8%)
hsv(259, 68.9%, 59.2%)
cmyk(47%, 68.9%, 0%, 40.8%)
lab(29.34, 39.88, -51.82)
lch(29.34, 65.39, 307.58)
oklch(40.8%, 0.1605, 292.38)
hwb(259, 18.4%, 40.8%)
Harmony colors
Accessibility
White text reads better on this background (9.57:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#444487 · ΔE 8.3
Deuteranopia
#464883 · ΔE 9.9
Tritanopia
#4f7874 · ΔE 33.1
Achromatopsia
#454545 · ΔE 26.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #502f97;
bg-[#502f97]
Related colors
Frequently asked questions
#502f97 (#502f97) is rgb(80, 47, 151) in RGB.
No, #502f97 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 #502f97, or check how it holds up for accessibility.