Color #5240ad
A moderately saturated medium blue.
Conversions
#5240ad
rgb(82, 64, 173)
hsl(249.9, 46%, 46.5%)
hsv(249.9, 63%, 67.8%)
cmyk(52.6%, 63%, 0%, 32.2%)
lab(34.96, 37, -55.96)
lch(34.96, 67.09, 303.47)
oklch(45.5%, 0.1663, 285.23)
hwb(249.9, 25.1%, 32.2%)
Harmony colors
Accessibility
White text reads better on this background (7.79:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4b4b9b · ΔE 5.2
Deuteranopia
#4c4d97 · ΔE 6.2
Tritanopia
#518b87 · ΔE 35.8
Achromatopsia
#525252 · ΔE 26.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5240ad;
bg-[#5240ad]
Related colors
Frequently asked questions
#5240ad (#5240ad) is rgb(82, 64, 173) in RGB.
No, #5240ad 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 #5240ad, or check how it holds up for accessibility.