#5F81EC#5F81EC
#5F81EC is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.0% C 0.165 H 268.2°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5F81EC |
|---|---|
| RGB | rgb(95, 129, 236) |
| HSL | hsl(226, 79%, 65%) |
| HSV | hsv(226, 60%, 93%) |
| CMYK | cmyk(59.7%, 45.3%, 0%, 7.5%) |
| CIE-LAB | lab(56.27, 19.99, -57.76) |
| CIE-LCH | lch(56.27, 61.12, 289.09°) |
| OKLab | oklab(63.02% -0.0053 -0.1648) |
| OKLCH | oklch(63.02% 0.165 268.2) |
| XYZ | xyz(27.7048, 24.1872, 82.5492) |
| Luminance | 0.2419 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 2.23
Lightish Blue
#3D7AFD
ΔE00 3.83
Dodger Blue
#3E82FC
ΔE00 3.95
Cornflower
#6A79F7
ΔE00 4.10
Clear Blue
#247AFD
ΔE00 5.20
Faded Blue
#658CBB
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F81EC #ECCA5F
analogous
#5FC7EC #5F81EC #845FEC
triadic
#5F81EC #EC5F81 #81EC5F
tetradic
#5F81EC #EC5FC7 #ECCA5F #5FEC84
square
#5F81EC #EC5FC7 #ECCA5F #5FEC84
split-complementary
#5F81EC #EC845F #C7EC5F
monochromatic
#163EBA #2856E6 #5F81EC #96ACF2 #CCD7F9
Accessibility & contrast
On white
3.60
#5F81EC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.84
#5F81EC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F81EC
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F81EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F81EC | 1.00 | 3.60 | 5.84 | 5.84 |
| #FFFFFF | 3.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E8EF0
Deuteranopia (green-blind)
#3881EA
Tritanopia (blue-blind)
#0099AB
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #5f81ec; /* rgb */ color: rgb(95, 129, 236); /* oklch */ color: oklch(63.0% 0.165 268.2);
Tailwind
colors: {
custom: {
50: '#98a5f3',
500: '#5f81ec',
950: '#000000',
},
}SCSS
$custom: #5f81ec; $custom-light: #98a5f3; $custom-dark: #000000;
JSON
{
"hex": "#5f81ec",
"rgb": {
"r": 95,
"g": 129,
"b": 236
},
"hsl": {
"h": 225.532,
"s": 78.771,
"l": 64.902
},
"oklch": {
"l": 0.63023,
"c": 0.16493,
"h": 268.2
},
"luminance": 0.2419
}Semantic roles & 50–950 ramp
primary
#5F81EC
secondary
#EBE0BB
accent
#A90ADB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85