#5791F2#5791F2
#5791F2 is a light, vivid blue. Relative luminance 0.287; OKLCH L 66.3% C 0.157 H 260.1°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5791F2 |
|---|---|
| RGB | rgb(87, 145, 242) |
| HSL | hsl(218, 86%, 65%) |
| HSV | hsv(218, 64%, 95%) |
| CMYK | cmyk(64%, 40.1%, 0%, 5.1%) |
| CIE-LAB | lab(60.50, 10.97, -54.35) |
| CIE-LCH | lch(60.50, 55.45, 281.41°) |
| OKLab | oklab(66.28% -0.027 -0.1548) |
| OKLCH | oklch(66.28% 0.157 260.1) |
| XYZ | xyz(30.0772, 28.6850, 87.9389) |
| Luminance | 0.2869 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflowerblue
#6495ED
ΔE00 1.72
Dark Sky Blue
#448EE4
ΔE00 3.39
Dodgerblue
#1E90FF
ΔE00 4.15
Soft Blue
#6488EA
ΔE00 4.29
Dodger Blue
#3E82FC
ΔE00 4.73
Faded Blue
#658CBB
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5791F2 #F2B857
analogous
#57DFF2 #5791F2 #6B57F2
triadic
#5791F2 #F25791 #91F257
tetradic
#5791F2 #F257DF #F2B857 #57F26B
square
#5791F2 #F257DF #F2B857 #57F26B
split-complementary
#5791F2 #F26B57 #DFF257
monochromatic
#0F51C0 #1E6CEE #5791F2 #90B6F6 #C9DBFB
Accessibility & contrast
On white
3.12
#5791F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.74
#5791F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5791F2
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5791F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5791F2 | 1.00 | 3.12 | 6.74 | 6.74 |
| #FFFFFF | 3.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#4E8BF0
Tritanopia (blue-blind)
#00A7B6
Achromatopsia (no color)
#929292
Design tokens & code
CSS
--color: #5791f2; /* rgb */ color: rgb(87, 145, 242); /* oklch */ color: oklch(66.3% 0.157 260.1);
Tailwind
colors: {
custom: {
50: '#94b0f7',
500: '#5791f2',
950: '#000000',
},
}SCSS
$custom: #5791f2; $custom-light: #94b0f7; $custom-dark: #000000;
JSON
{
"hex": "#5791f2",
"rgb": {
"r": 87,
"g": 145,
"b": 242
},
"hsl": {
"h": 217.548,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.66281,
"c": 0.15714,
"h": 260.1
},
"luminance": 0.28688
}Semantic roles & 50–950 ramp
primary
#5791F2
secondary
#EDD9B8
accent
#8F03E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E1017
muted
#7E7F85