#5871E8#5871E8
#5871E8 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.181 H 271.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #5871E8 |
|---|---|
| RGB | rgb(88, 113, 232) |
| HSL | hsl(230, 76%, 63%) |
| HSV | hsv(230, 62%, 91%) |
| CMYK | cmyk(62.1%, 51.3%, 0%, 9%) |
| CIE-LAB | lab(51.51, 27.19, -63.20) |
| CIE-LCH | lch(51.51, 68.80, 293.28°) |
| OKLab | oklab(59.22% 0.0031 -0.1812) |
| OKLCH | oklch(59.22% 0.181 271) |
| XYZ | xyz(24.4902, 19.7091, 78.8419) |
| Luminance | 0.1971 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 2.69
Royal Blue
#4169E1
ΔE00 3.95
Cornflower
#6A79F7
ΔE00 4.12
Lightish Blue
#3D7AFD
ΔE00 5.07
Bright Blue
#0165FC
ΔE00 5.97
Cerulean Blue
#056EEE
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5871E8 #E8CF58
analogous
#58B9E8 #5871E8 #8758E8
triadic
#5871E8 #E85871 #71E858
tetradic
#5871E8 #E858B9 #E8CF58 #58E887
square
#5871E8 #E858B9 #E8CF58 #58E887
split-complementary
#5871E8 #E88758 #B9E858
monochromatic
#1832AE #2243E1 #5871E8 #8E9FEF #C4CCF7
Accessibility & contrast
On white
4.25
#5871E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#5871E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5871E8
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5871E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5871E8 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A81EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #5871e8; /* rgb */ color: rgb(88, 113, 232); /* oklch */ color: oklch(59.2% 0.181 271.0);
Tailwind
colors: {
custom: {
50: '#9499f0',
500: '#5871e8',
950: '#000000',
},
}SCSS
$custom: #5871e8; $custom-light: #9499f0; $custom-dark: #000000;
JSON
{
"hex": "#5871e8",
"rgb": {
"r": 88,
"g": 113,
"b": 232
},
"hsl": {
"h": 229.583,
"s": 75.789,
"l": 62.745
},
"oklch": {
"l": 0.5922,
"c": 0.18125,
"h": 271
},
"luminance": 0.19711
}Semantic roles & 50–950 ramp
primary
#5871E8
secondary
#E8DFB4
accent
#B50ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85