Color #504e8a
A muted medium blue.
Conversions
#504e8a
rgb(80, 78, 138)
hsl(242, 27.8%, 42.4%)
hsv(242, 43.5%, 54.1%)
cmyk(42%, 43.5%, 0%, 45.9%)
lab(35.96, 16.84, -33.23)
lch(35.96, 37.25, 296.87)
oklch(45.5%, 0.0963, 283.39)
hwb(242, 30.6%, 45.9%)
Harmony colors
Accessibility
White text reads better on this background (7.51:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#4f4f7f · ΔE 2.7
Deuteranopia
#4f4f7c · ΔE 3.4
Tritanopia
#507572 · ΔE 27.1
Achromatopsia
#555555 · ΔE 21.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #504e8a;
bg-[#504e8a]
Related colors
Frequently asked questions
#504e8a (#504e8a) is rgb(80, 78, 138) in RGB.
No, #504e8a 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 #504e8a, or check how it holds up for accessibility.