#5851CB#5851CB
#5851CB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.183 H 280.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #5851CB |
|---|---|
| RGB | rgb(88, 81, 203) |
| HSL | hsl(243, 54%, 56%) |
| HSV | hsv(243, 60%, 80%) |
| CMYK | cmyk(56.7%, 60.1%, 0%, 20.4%) |
| CIE-LAB | lab(41.64, 37.30, -62.67) |
| CIE-LCH | lch(41.64, 72.93, 300.76°) |
| OKLab | oklab(51.22% 0.0328 -0.1799) |
| OKLCH | oklch(51.22% 0.183 280.3) |
| XYZ | xyz(17.7430, 12.2702, 57.9217) |
| Luminance | 0.1227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.72
Warm Blue
#4B57DB
ΔE00 3.45
Slate Blue
#6A5ACD
ΔE00 3.84
Light Indigo
#6D5ACF
ΔE00 4.28
Dark Periwinkle
#665FD1
ΔE00 4.69
Bluey Purple
#6241C7
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5851CB #C4CB51
analogous
#5187CB #5851CB #9551CB
triadic
#5851CB #CB5851 #51CB58
tetradic
#5851CB #CB5187 #C4CB51 #51CB95
square
#5851CB #CB5187 #C4CB51 #51CB95
split-complementary
#5851CB #CB9551 #87CB51
monochromatic
#2A257C #3A33AC #5851CB #8580D9 #B2AFE7
Accessibility & contrast
On white
6.08
#5851CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#5851CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5851CB
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5851CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5851CB | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#196E86
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5851cb; /* rgb */ color: rgb(88, 81, 203); /* oklch */ color: oklch(51.2% 0.183 280.3);
Tailwind
colors: {
custom: {
50: '#9182dc',
500: '#5851cb',
950: '#000000',
},
}SCSS
$custom: #5851cb; $custom-light: #9182dc; $custom-dark: #000000;
JSON
{
"hex": "#5851cb",
"rgb": {
"r": 88,
"g": 81,
"b": 203
},
"hsl": {
"h": 243.443,
"s": 53.982,
"l": 55.686
},
"oklch": {
"l": 0.51224,
"c": 0.18291,
"h": 280.3
},
"luminance": 0.12271
}Semantic roles & 50–950 ramp
primary
#5851CB
secondary
#D2D5A3
accent
#DD4AD5
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83