#5F81FE#5F81FE
#5F81FE is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.2% C 0.189 H 269.1°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #5F81FE |
|---|---|
| RGB | rgb(95, 129, 254) |
| HSL | hsl(227, 99%, 68%) |
| HSV | hsv(227, 63%, 100%) |
| CMYK | cmyk(62.6%, 49.2%, 0%, 0.4%) |
| CIE-LAB | lab(57.35, 25.96, -65.99) |
| CIE-LCH | lch(57.35, 70.91, 291.47°) |
| OKLab | oklab(64.19% -0.0031 -0.189) |
| OKLCH | oklch(64.19% 0.189 269.1) |
| XYZ | xyz(30.4529, 25.2865, 97.0227) |
| Luminance | 0.2529 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 3.18
Cornflower
#6A79F7
ΔE00 3.53
Lightish Blue
#3D7AFD
ΔE00 3.99
Dodger Blue
#3E82FC
ΔE00 4.27
Clear Blue
#247AFD
ΔE00 5.62
Azure
#007FFF
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F81FE #FEDC5F
analogous
#5FD0FE #5F81FE #8C5FFE
triadic
#5F81FE #FE5F81 #81FE5F
tetradic
#5F81FE #FE5FD0 #FEDC5F #5FFE8C
square
#5F81FE #FE5FD0 #FEDC5F #5FFE8C
split-complementary
#5F81FE #FE8C5F #D0FE5F
monochromatic
#0131E1 #2251FE #5F81FE #9CB1FE #D9E1FF
Accessibility & contrast
On white
3.47
#5F81FE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.06
#5F81FE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F81FE
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F81FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F81FE | 1.00 | 3.47 | 6.06 | 6.06 |
| #FFFFFF | 3.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C91FF
Deuteranopia (green-blind)
#1083FB
Tritanopia (blue-blind)
#009EB3
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #5f81fe; /* rgb */ color: rgb(95, 129, 254); /* oklch */ color: oklch(64.2% 0.189 269.1);
Tailwind
colors: {
custom: {
50: '#9aa5ff',
500: '#5f81fe',
950: '#000000',
},
}SCSS
$custom: #5f81fe; $custom-light: #9aa5ff; $custom-dark: #000000;
JSON
{
"hex": "#5f81fe",
"rgb": {
"r": 95,
"g": 129,
"b": 254
},
"hsl": {
"h": 227.17,
"s": 98.758,
"l": 68.431
},
"oklch": {
"l": 0.64191,
"c": 0.18907,
"h": 269.1
},
"luminance": 0.25289
}Semantic roles & 50–950 ramp
primary
#5F81FE
secondary
#F4EAC4
accent
#B400E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86