#5851BF#5851BF
#5851BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.167 H 281.4°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #5851BF |
|---|---|
| RGB | rgb(88, 81, 191) |
| HSL | hsl(244, 46%, 53%) |
| HSV | hsv(244, 58%, 75%) |
| CMYK | cmyk(53.9%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(40.77, 33.49, -57.12) |
| CIE-LCH | lch(40.77, 66.21, 300.38°) |
| OKLab | oklab(50.3% 0.0331 -0.1636) |
| OKLCH | oklch(50.3% 0.167 281.4) |
| XYZ | xyz(16.3680, 11.7202, 50.6798) |
| Luminance | 0.1172 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.63
Slate Blue
#6A5ACD
ΔE00 4.36
Ocean Blue
#4F42B5
ΔE00 4.58
Warm Blue
#4B57DB
ΔE00 4.69
Light Indigo
#6D5ACF
ΔE00 4.87
Bluey Purple
#6241C7
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5851BF #B8BF51
analogous
#5181BF #5851BF #8F51BF
triadic
#5851BF #BF5851 #51BF58
tetradic
#5851BF #BF5181 #B8BF51 #51BF8F
square
#5851BF #BF5181 #B8BF51 #51BF8F
split-complementary
#5851BF #BF8F51 #81BF51
monochromatic
#2D286D #3F399A #5851BF #837ECF #AEAAE0
Accessibility & contrast
On white
6.28
#5851BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#5851BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5851BF
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5851BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5851BF | 1.00 | 6.28 | 3.34 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#2A6B80
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5851bf; /* rgb */ color: rgb(88, 81, 191); /* oklch */ color: oklch(50.3% 0.167 281.4);
Tailwind
colors: {
custom: {
50: '#9082d3',
500: '#5851bf',
950: '#000000',
},
}SCSS
$custom: #5851bf; $custom-light: #9082d3; $custom-dark: #000000;
JSON
{
"hex": "#5851bf",
"rgb": {
"r": 88,
"g": 81,
"b": 191
},
"hsl": {
"h": 243.818,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.50303,
"c": 0.16693,
"h": 281.4
},
"luminance": 0.11721
}Semantic roles & 50–950 ramp
primary
#5851BF
secondary
#CBCE9E
accent
#D652CD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83