#5F7AEA#5F7AEA
#5F7AEA is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.5% C 0.171 H 270.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #5F7AEA |
|---|---|
| RGB | rgb(95, 122, 234) |
| HSL | hsl(228, 77%, 65%) |
| HSV | hsv(228, 59%, 92%) |
| CMYK | cmyk(59.4%, 47.9%, 0%, 8.2%) |
| CIE-LAB | lab(54.33, 23.58, -59.75) |
| CIE-LCH | lch(54.33, 64.24, 291.54°) |
| OKLab | oklab(61.51% 0.0015 -0.1708) |
| OKLCH | oklch(61.51% 0.171 270.5) |
| XYZ | xyz(26.5252, 22.2903, 80.7306) |
| Luminance | 0.2229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.74
Lightish Blue
#3D7AFD
ΔE00 3.99
Cornflower Blue
#5170D7
ΔE00 4.57
Soft Blue
#6488EA
ΔE00 4.58
Dodger Blue
#3E82FC
ΔE00 5.51
Clear Blue
#247AFD
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F7AEA #EACF5F
analogous
#5FC0EA #5F7AEA #895FEA
triadic
#5F7AEA #EA5F7A #7AEA5F
tetradic
#5F7AEA #EA5FC0 #EACF5F #5FEA89
square
#5F7AEA #EA5FC0 #EACF5F #5FEA89
split-complementary
#5F7AEA #EA895F #C0EA5F
monochromatic
#1837B7 #294DE3 #5F7AEA #95A7F1 #CBD4F8
Accessibility & contrast
On white
3.85
#5F7AEA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.46
#5F7AEA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5F7AEA
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F7AEA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5F7AEA | 1.00 | 3.85 | 5.46 | 5.46 |
| #FFFFFF | 3.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4288EE
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #5f7aea; /* rgb */ color: rgb(95, 122, 234); /* oklch */ color: oklch(61.5% 0.171 270.5);
Tailwind
colors: {
custom: {
50: '#98a0f1',
500: '#5f7aea',
950: '#000000',
},
}SCSS
$custom: #5f7aea; $custom-light: #98a0f1; $custom-dark: #000000;
JSON
{
"hex": "#5f7aea",
"rgb": {
"r": 95,
"g": 122,
"b": 234
},
"hsl": {
"h": 228.345,
"s": 76.796,
"l": 64.51
},
"oklch": {
"l": 0.61506,
"c": 0.17082,
"h": 270.5
},
"luminance": 0.22292
}Semantic roles & 50–950 ramp
primary
#5F7AEA
secondary
#EAE1BA
accent
#B10CD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85