#5787F2#5787F2
#5787F2 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.2% C 0.168 H 264.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #5787F2 |
|---|---|
| RGB | rgb(87, 135, 242) |
| HSL | hsl(221, 86%, 65%) |
| HSV | hsv(221, 64%, 95%) |
| CMYK | cmyk(64%, 44.2%, 0%, 5.1%) |
| CIE-LAB | lab(57.81, 16.96, -58.65) |
| CIE-LCH | lch(57.81, 61.05, 286.13°) |
| OKLab | oklab(64.21% -0.0174 -0.1675) |
| OKLCH | oklch(64.21% 0.168 264.1) |
| XYZ | xyz(28.6159, 25.7623, 87.4518) |
| Luminance | 0.2576 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 1.88
Dodger Blue
#3E82FC
ΔE00 2.49
Cornflowerblue
#6495ED
ΔE00 4.31
Lightish Blue
#3D7AFD
ΔE00 4.31
Azure
#007FFF
ΔE00 4.94
Clear Blue
#247AFD
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5787F2 #F2C257
analogous
#57D5F2 #5787F2 #7557F2
triadic
#5787F2 #F25787 #87F257
tetradic
#5787F2 #F257D5 #F2C257 #57F275
square
#5787F2 #F257D5 #F2C257 #57F275
split-complementary
#5787F2 #F27557 #D5F257
monochromatic
#0F46C0 #1E5EEE #5787F2 #90B0F6 #C9D8FB
Accessibility & contrast
On white
3.41
#5787F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#5787F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5787F2
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5787F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5787F2 | 1.00 | 3.41 | 6.15 | 6.15 |
| #FFFFFF | 3.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5492F6
Deuteranopia (green-blind)
#3984F0
Tritanopia (blue-blind)
#009FB1
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #5787f2; /* rgb */ color: rgb(87, 135, 242); /* oklch */ color: oklch(64.2% 0.168 264.1);
Tailwind
colors: {
custom: {
50: '#95a9f7',
500: '#5787f2',
950: '#000000',
},
}SCSS
$custom: #5787f2; $custom-light: #95a9f7; $custom-dark: #000000;
JSON
{
"hex": "#5787f2",
"rgb": {
"r": 87,
"g": 135,
"b": 242
},
"hsl": {
"h": 221.419,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.64205,
"c": 0.16845,
"h": 264.1
},
"luminance": 0.25765
}Semantic roles & 50–950 ramp
primary
#5787F2
secondary
#EDDDB8
accent
#9D03E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85