#5795F2#5795F2
#5795F2 is a light, vivid blue. Relative luminance 0.299; OKLCH L 67.1% C 0.153 H 258.3°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5795F2 |
|---|---|
| RGB | rgb(87, 149, 242) |
| HSL | hsl(216, 86%, 65%) |
| HSV | hsv(216, 64%, 95%) |
| CMYK | cmyk(64%, 38.4%, 0%, 5.1%) |
| CIE-LAB | lab(61.59, 8.60, -52.62) |
| CIE-LCH | lch(61.59, 53.32, 279.29°) |
| OKLab | oklab(67.13% -0.0309 -0.1497) |
| OKLCH | oklch(67.13% 0.153 258.3) |
| XYZ | xyz(30.6992, 29.9290, 88.1462) |
| Luminance | 0.2993 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflowerblue
#6495ED
ΔE00 1.84
Dark Sky Blue
#448EE4
ΔE00 3.44
Dodgerblue
#1E90FF
ΔE00 3.74
Soft Blue
#6488EA
ΔE00 5.58
Dodger Blue
#3E82FC
ΔE00 5.94
Faded Blue
#658CBB
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5795F2 #F2B457
analogous
#57E2F2 #5795F2 #6757F2
triadic
#5795F2 #F25795 #95F257
tetradic
#5795F2 #F257E2 #F2B457 #57F267
square
#5795F2 #F257E2 #F2B457 #57F267
split-complementary
#5795F2 #F26757 #E2F257
monochromatic
#0F56C0 #1E71EE #5795F2 #90B9F6 #C9DDFB
Accessibility & contrast
On white
3.01
#5795F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.99
#5795F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5795F2
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5795F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5795F2 | 1.00 | 3.01 | 6.99 | 6.99 |
| #FFFFFF | 3.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#558EF0
Tritanopia (blue-blind)
#00AAB8
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #5795f2; /* rgb */ color: rgb(87, 149, 242); /* oklch */ color: oklch(67.1% 0.153 258.3);
Tailwind
colors: {
custom: {
50: '#94b3f7',
500: '#5795f2',
950: '#000000',
},
}SCSS
$custom: #5795f2; $custom-light: #94b3f7; $custom-dark: #000000;
JSON
{
"hex": "#5795f2",
"rgb": {
"r": 87,
"g": 149,
"b": 242
},
"hsl": {
"h": 216,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.67127,
"c": 0.15283,
"h": 258.3
},
"luminance": 0.29932
}Semantic roles & 50–950 ramp
primary
#5795F2
secondary
#EDD8B8
accent
#8903E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085