#5F81EB#5F81EB
#5F81EB is a light, vivid blue. Relative luminance 0.241; OKLCH L 63.0% C 0.164 H 268.1°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #5F81EB |
|---|---|
| RGB | rgb(95, 129, 235) |
| HSL | hsl(225, 78%, 65%) |
| HSV | hsv(225, 60%, 92%) |
| CMYK | cmyk(59.6%, 45.1%, 0%, 7.8%) |
| CIE-LAB | lab(56.22, 19.66, -57.29) |
| CIE-LCH | lch(56.22, 60.57, 288.94°) |
| OKLab | oklab(62.96% -0.0054 -0.1635) |
| OKLCH | oklch(62.96% 0.164 268.1) |
| XYZ | xyz(27.5599, 24.1293, 81.7862) |
| Luminance | 0.2413 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 2.22
Lightish Blue
#3D7AFD
ΔE00 3.86
Dodger Blue
#3E82FC
ΔE00 3.97
Cornflower
#6A79F7
ΔE00 4.17
Clear Blue
#247AFD
ΔE00 5.21
Faded Blue
#658CBB
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F81EB #EBC95F
analogous
#5FC7EB #5F81EB #835FEB
triadic
#5F81EB #EB5F81 #81EB5F
tetradic
#5F81EB #EB5FC7 #EBC95F #5FEB83
square
#5F81EB #EB5FC7 #EBC95F #5FEB83
split-complementary
#5F81EB #EB835F #C7EB5F
monochromatic
#173EB9 #2956E4 #5F81EB #95ACF2 #CCD7F9
Accessibility & contrast
On white
3.60
#5F81EB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.83
#5F81EB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F81EB
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F81EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F81EB | 1.00 | 3.60 | 5.83 | 5.83 |
| #FFFFFF | 3.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F8DEF
Deuteranopia (green-blind)
#3981E9
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #5f81eb; /* rgb */ color: rgb(95, 129, 235); /* oklch */ color: oklch(63.0% 0.164 268.1);
Tailwind
colors: {
custom: {
50: '#98a5f2',
500: '#5f81eb',
950: '#000000',
},
}SCSS
$custom: #5f81eb; $custom-light: #98a5f2; $custom-dark: #000000;
JSON
{
"hex": "#5f81eb",
"rgb": {
"r": 95,
"g": 129,
"b": 235
},
"hsl": {
"h": 225.429,
"s": 77.778,
"l": 64.706
},
"oklch": {
"l": 0.6296,
"c": 0.16358,
"h": 268.1
},
"luminance": 0.24132
}Semantic roles & 50–950 ramp
primary
#5F81EB
secondary
#EBDFBB
accent
#A80BDA
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85