#5A7AF2#5A7AF2
#5A7AF2 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.8% C 0.183 H 269.2°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7AF2 |
|---|---|
| RGB | rgb(90, 122, 242) |
| HSL | hsl(227, 85%, 65%) |
| HSV | hsv(227, 63%, 95%) |
| CMYK | cmyk(62.8%, 49.6%, 0%, 5.1%) |
| CIE-LAB | lab(54.55, 25.37, -63.87) |
| CIE-LCH | lch(54.55, 68.72, 291.66°) |
| OKLab | oklab(61.76% -0.0025 -0.183) |
| OKLCH | oklch(61.76% 0.183 269.2) |
| XYZ | xyz(27.1976, 22.5011, 86.8971) |
| Luminance | 0.2250 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower
#6A79F7
ΔE00 2.82
Lightish Blue
#3D7AFD
ΔE00 3.13
Soft Blue
#6488EA
ΔE00 4.55
Dodger Blue
#3E82FC
ΔE00 4.82
Clear Blue
#247AFD
ΔE00 4.87
Cornflower Blue
#5170D7
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7AF2 #F2D25A
analogous
#5AC6F2 #5A7AF2 #865AF2
triadic
#5A7AF2 #F25A7A #7AF25A
tetradic
#5A7AF2 #F25AC6 #F2D25A #5AF286
square
#5A7AF2 #F25AC6 #F2D25A #5AF286
split-complementary
#5A7AF2 #F2865A #C6F25A
monochromatic
#0F35C2 #214CEE #5A7AF2 #93A8F6 #CBD5FB
Accessibility & contrast
On white
3.82
#5A7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.50
#5A7AF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7AF2
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7AF2 | 1.00 | 3.82 | 5.50 | 5.50 |
| #FFFFFF | 3.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#378AF6
Deuteranopia (green-blind)
#097CF0
Tritanopia (blue-blind)
#0096AB
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #5a7af2; /* rgb */ color: rgb(90, 122, 242); /* oklch */ color: oklch(61.8% 0.183 269.2);
Tailwind
colors: {
custom: {
50: '#96a0f7',
500: '#5a7af2',
950: '#000000',
},
}SCSS
$custom: #5a7af2; $custom-light: #96a0f7; $custom-dark: #000000;
JSON
{
"hex": "#5a7af2",
"rgb": {
"r": 90,
"g": 122,
"b": 242
},
"hsl": {
"h": 227.368,
"s": 85.393,
"l": 65.098
},
"oklch": {
"l": 0.61759,
"c": 0.18304,
"h": 269.2
},
"luminance": 0.22504
}Semantic roles & 50–950 ramp
primary
#5A7AF2
secondary
#EEE3BA
accent
#B304E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85