#5F81EA#5F81EA
#5F81EA is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.9% C 0.162 H 268.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #5F81EA |
|---|---|
| RGB | rgb(95, 129, 234) |
| HSL | hsl(225, 77%, 65%) |
| HSV | hsv(225, 59%, 92%) |
| CMYK | cmyk(59.4%, 44.9%, 0%, 8.2%) |
| CIE-LAB | lab(56.16, 19.33, -56.83) |
| CIE-LCH | lch(56.16, 60.02, 288.79°) |
| OKLab | oklab(62.9% -0.0056 -0.1621) |
| OKLCH | oklch(62.9% 0.162 268) |
| XYZ | xyz(27.4158, 24.0717, 81.0275) |
| Luminance | 0.2407 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 2.22
Lightish Blue
#3D7AFD
ΔE00 3.89
Dodger Blue
#3E82FC
ΔE00 3.99
Cornflower
#6A79F7
ΔE00 4.23
Clear Blue
#247AFD
ΔE00 5.21
Faded Blue
#658CBB
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F81EA #EAC85F
analogous
#5FC6EA #5F81EA #835FEA
triadic
#5F81EA #EA5F81 #81EA5F
tetradic
#5F81EA #EA5FC6 #EAC85F #5FEA83
square
#5F81EA #EA5FC6 #EAC85F #5FEA83
split-complementary
#5F81EA #EA835F #C6EA5F
monochromatic
#183FB7 #2956E3 #5F81EA #95ACF1 #CBD6F8
Accessibility & contrast
On white
3.61
#5F81EA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.81
#5F81EA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F81EA
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F81EA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F81EA | 1.00 | 3.61 | 5.81 | 5.81 |
| #FFFFFF | 3.61 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#3B81E8
Tritanopia (blue-blind)
#0099AA
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #5f81ea; /* rgb */ color: rgb(95, 129, 234); /* oklch */ color: oklch(62.9% 0.162 268.0);
Tailwind
colors: {
custom: {
50: '#97a5f1',
500: '#5f81ea',
950: '#000000',
},
}SCSS
$custom: #5f81ea; $custom-light: #97a5f1; $custom-dark: #000000;
JSON
{
"hex": "#5f81ea",
"rgb": {
"r": 95,
"g": 129,
"b": 234
},
"hsl": {
"h": 225.324,
"s": 76.796,
"l": 64.51
},
"oklch": {
"l": 0.62898,
"c": 0.16222,
"h": 268
},
"luminance": 0.24074
}Semantic roles & 50–950 ramp
primary
#5F81EA
secondary
#EADFBA
accent
#A70CD9
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85