Color #5165b4
A muted medium blue.
Conversions
#5165b4
rgb(81, 101, 180)
hsl(227.9, 39.8%, 51.2%)
hsv(227.9, 55%, 70.6%)
cmyk(55%, 43.9%, 0%, 29.4%)
lab(44.73, 15.92, -44.36)
lch(44.73, 47.13, 289.74)
oklch(52.9%, 0.1261, 270.86)
hwb(227.9, 31.8%, 29.4%)
Harmony colors
Accessibility
White text reads better on this background (5.43:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#5a5ba5 · ΔE 5.2
Deuteranopia
#5958a1 · ΔE 6.3
Tritanopia
#529895 · ΔE 30.9
Achromatopsia
#6a6a6a · ΔE 23.1
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5165b4;
bg-[#5165b4]
Related colors
Frequently asked questions
#5165b4 (#5165b4) is rgb(81, 101, 180) in RGB.
No, #5165b4 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 #5165b4, or check how it holds up for accessibility.