#5851CF#5851CF
#5851CF is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.188 H 280.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #5851CF |
|---|---|
| RGB | rgb(88, 81, 207) |
| HSL | hsl(243, 57%, 56%) |
| HSV | hsv(243, 61%, 81%) |
| CMYK | cmyk(57.5%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(41.94, 38.57, -64.49) |
| CIE-LCH | lch(41.94, 75.14, 300.89°) |
| OKLab | oklab(51.54% 0.0326 -0.1853) |
| OKLCH | oklch(51.54% 0.188 280) |
| XYZ | xyz(18.2259, 12.4633, 60.4646) |
| Luminance | 0.1246 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.95
Warm Blue
#4B57DB
ΔE00 3.14
Slate Blue
#6A5ACD
ΔE00 3.80
Light Indigo
#6D5ACF
ΔE00 4.20
Dark Periwinkle
#665FD1
ΔE00 4.58
Bluey Purple
#6241C7
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5851CF #C8CF51
analogous
#5189CF #5851CF #9751CF
triadic
#5851CF #CF5851 #51CF58
tetradic
#5851CF #CF5189 #C8CF51 #51CF97
square
#5851CF #CF5189 #C8CF51 #51CF97
split-complementary
#5851CF #CF9751 #89CF51
monochromatic
#292482 #3831B2 #5851CF #8681DC #B4B1E9
Accessibility & contrast
On white
6.01
#5851CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#5851CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5851CF
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5851CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5851CF | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#0F7088
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5851cf; /* rgb */ color: rgb(88, 81, 207); /* oklch */ color: oklch(51.5% 0.188 280.0);
Tailwind
colors: {
custom: {
50: '#9282df',
500: '#5851cf',
950: '#000000',
},
}SCSS
$custom: #5851cf; $custom-light: #9282df; $custom-dark: #000000;
JSON
{
"hex": "#5851cf",
"rgb": {
"r": 88,
"g": 81,
"b": 207
},
"hsl": {
"h": 243.333,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.5154,
"c": 0.18814,
"h": 280
},
"luminance": 0.12465
}Semantic roles & 50–950 ramp
primary
#5851CF
secondary
#D5D8A4
accent
#E048D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83