Skip to content
Kolorvia
#5b51b1

Color #5b51b1

A muted medium blue.

Conversions

HEX
#5b51b1
RGB
rgb(91, 81, 177)
HSL
hsl(246.3, 38.1%, 50.6%)
HSV / HSB
hsv(246.3, 54.2%, 69.4%)
CMYK
cmyk(48.6%, 54.2%, 0%, 30.6%)
LAB
lab(40.05, 29.73, -50.05)
LCH
lch(40.05, 58.21, 300.71)
OKLCH
oklch(49.5%, 0.1473, 284.39)
HWB
hwb(246.3, 31.8%, 30.6%)

Harmony colors

Complementary

#a7b151

Analogous

#5177b1
#5b51b1
#8b51b1

Triadic

#5b51b1
#b15b51
#51b15b

Split-complementary

#5b51b1
#b18b51
#77b151

Tetradic

#5b51b1
#b151a7
#a7b151
#51b15b

Square

#5b51b1
#b15177
#a7b151
#51b18b

Shades

Color #5b51b1 mixed toward black.

#4b4394
#3c3577
#2d2859
#1e1b3b
#0f0d1e

Tints

Color #5b51b1 mixed toward white.

#766ebe
#928bcb
#ada8d8
#c8c5e5
#e4e2f2

Tones

Color #5b51b1 mixed toward gray.

#6159a9
#6861a1
#6e6999
#747191
#7b7989

Accessibility

Aa White text on this color
6.45:1
Aa Black text on this color
3.26:1

White text reads better on this background (6.45:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.

Under color vision deficiencies

Protanopia

#5757a0 · ΔE 4

Deuteranopia

#57589c · ΔE 4.8

Tritanopia

#5b918e · ΔE 33.3

Achromatopsia

#5e5e5e · ΔE 25.4

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #5b51b1;
Tailwind (arbitrary value)
bg-[#5b51b1]

Related colors

Slate Blue #6a5acd
Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Navy #000080
Lavender #e6e6fa
Blue #0000ff

Frequently asked questions

#5b51b1 (#5b51b1) is rgb(91, 81, 177) in RGB.

No, #5b51b1 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #5b51b1, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.