#5A7AEF#5A7AEF
#5A7AEF is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.6% C 0.179 H 269.1°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7AEF |
|---|---|
| RGB | rgb(90, 122, 239) |
| HSL | hsl(227, 82%, 65%) |
| HSV | hsv(227, 62%, 94%) |
| CMYK | cmyk(62.3%, 49%, 0%, 6.3%) |
| CIE-LAB | lab(54.37, 24.36, -62.50) |
| CIE-LCH | lch(54.37, 67.08, 291.29°) |
| OKLab | oklab(61.56% -0.0028 -0.179) |
| OKLCH | oklch(61.56% 0.179 269.1) |
| XYZ | xyz(26.7507, 22.3224, 84.5435) |
| Luminance | 0.2233 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 3.02
Lightish Blue
#3D7AFD
ΔE00 3.16
Soft Blue
#6488EA
ΔE00 4.51
Cornflower Blue
#5170D7
ΔE00 4.74
Dodger Blue
#3E82FC
ΔE00 4.82
Clear Blue
#247AFD
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7AEF #EFCF5A
analogous
#5AC5EF #5A7AEF #855AEF
triadic
#5A7AEF #EF5A7A #7AEF5A
tetradic
#5A7AEF #EF5AC5 #EFCF5A #5AEF85
square
#5A7AEF #EF5AC5 #EFCF5A #5AEF85
split-complementary
#5A7AEF #EF855A #C5EF5A
monochromatic
#1237BC #224DEA #5A7AEF #92A7F4 #CAD4FA
Accessibility & contrast
On white
3.84
#5A7AEF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.47
#5A7AEF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7AEF
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7AEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7AEF | 1.00 | 3.84 | 5.47 | 5.47 |
| #FFFFFF | 3.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B89F3
Deuteranopia (green-blind)
#167CED
Tritanopia (blue-blind)
#0095A9
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #5a7aef; /* rgb */ color: rgb(90, 122, 239); /* oklch */ color: oklch(61.6% 0.179 269.1);
Tailwind
colors: {
custom: {
50: '#96a0f5',
500: '#5a7aef',
950: '#000000',
},
}SCSS
$custom: #5a7aef; $custom-light: #96a0f5; $custom-dark: #000000;
JSON
{
"hex": "#5a7aef",
"rgb": {
"r": 90,
"g": 122,
"b": 239
},
"hsl": {
"h": 227.114,
"s": 82.32,
"l": 64.51
},
"oklch": {
"l": 0.61557,
"c": 0.17901,
"h": 269.1
},
"luminance": 0.22325
}Semantic roles & 50–950 ramp
primary
#5A7AEF
secondary
#ECE1B9
accent
#B007DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0F0E17
muted
#7E7E85