#5871DC#5871DC
#5871DC is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.4% C 0.165 H 270.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #5871DC |
|---|---|
| RGB | rgb(88, 113, 220) |
| HSL | hsl(229, 65%, 60%) |
| HSV | hsv(229, 60%, 86%) |
| CMYK | cmyk(60%, 48.6%, 0%, 13.7%) |
| CIE-LAB | lab(50.75, 23.17, -57.67) |
| CIE-LCH | lch(50.75, 62.15, 291.89°) |
| OKLab | oklab(58.4% 0.0019 -0.165) |
| OKLCH | oklch(58.4% 0.165 270.7) |
| XYZ | xyz(22.8436, 19.0504, 70.1696) |
| Luminance | 0.1905 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 1.41
Royal Blue
#4169E1
ΔE00 3.56
Cornflower
#6A79F7
ΔE00 5.24
Lightish Blue
#3D7AFD
ΔE00 5.73
Cerulean Blue
#056EEE
ΔE00 6.00
Bright Blue
#0165FC
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5871DC #DCC358
analogous
#58B3DC #5871DC #8158DC
triadic
#5871DC #DC5871 #71DC58
tetradic
#5871DC #DC58B3 #DCC358 #58DC81
square
#5871DC #DC58B3 #DCC358 #58DC81
split-complementary
#5871DC #DC8158 #B3DC58
monochromatic
#203799 #2B49CC #5871DC #8B9CE7 #BDC7F1
Accessibility & contrast
On white
4.37
#5871DC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#5871DC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5871DC
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5871DC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5871DC | 1.00 | 4.37 | 4.81 | 4.81 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A7FE0
Deuteranopia (green-blind)
#2073DA
Tritanopia (blue-blind)
#00899C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #5871dc; /* rgb */ color: rgb(88, 113, 220); /* oklch */ color: oklch(58.4% 0.165 270.7);
Tailwind
colors: {
custom: {
50: '#9299e7',
500: '#5871dc',
950: '#000000',
},
}SCSS
$custom: #5871dc; $custom-light: #9299e7; $custom-dark: #000000;
JSON
{
"hex": "#5871dc",
"rgb": {
"r": 88,
"g": 113,
"b": 220
},
"hsl": {
"h": 228.636,
"s": 65.347,
"l": 60.392
},
"oklch": {
"l": 0.58401,
"c": 0.16496,
"h": 270.7
},
"luminance": 0.19052
}Semantic roles & 50–950 ramp
primary
#5871DC
secondary
#E1D8AF
accent
#AB18CD
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84