#5A7DEC#5A7DEC
#5A7DEC is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.171 H 268.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7DEC |
|---|---|
| RGB | rgb(90, 125, 236) |
| HSL | hsl(226, 79%, 64%) |
| HSV | hsv(226, 62%, 93%) |
| CMYK | cmyk(61.9%, 47%, 0%, 7.5%) |
| CIE-LAB | lab(54.96, 21.52, -59.87) |
| CIE-LCH | lch(54.96, 63.62, 289.77°) |
| OKLab | oklab(61.95% -0.006 -0.1712) |
| OKLCH | oklch(61.95% 0.171 268) |
| XYZ | xyz(26.6852, 22.8947, 82.3535) |
| Luminance | 0.2290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Lightish Blue
#3D7AFD
ΔE00 3.05
Soft Blue
#6488EA
ΔE00 3.52
Cornflower
#6A79F7
ΔE00 3.76
Dodger Blue
#3E82FC
ΔE00 4.06
Clear Blue
#247AFD
ΔE00 4.55
Cornflower Blue
#5170D7
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7DEC #ECC95A
analogous
#5AC6EC #5A7DEC #805AEC
triadic
#5A7DEC #EC5A7D #7DEC5A
tetradic
#5A7DEC #EC5AC6 #ECC95A #5AEC80
square
#5A7DEC #EC5AC6 #ECC95A #5AEC80
split-complementary
#5A7DEC #EC805A #C6EC5A
monochromatic
#153CB7 #2352E6 #5A7DEC #91A8F2 #C8D3F9
Accessibility & contrast
On white
3.76
#5A7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.58
#5A7DEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7DEC
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7DEC | 1.00 | 3.76 | 5.58 | 5.58 |
| #FFFFFF | 3.76 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#458BF0
Deuteranopia (green-blind)
#2A7DEA
Tritanopia (blue-blind)
#0096A9
Achromatopsia (no color)
#848484
Design tokens & code
CSS
--color: #5a7dec; /* rgb */ color: rgb(90, 125, 236); /* oklch */ color: oklch(62.0% 0.171 268.0);
Tailwind
colors: {
custom: {
50: '#95a2f3',
500: '#5a7dec',
950: '#000000',
},
}SCSS
$custom: #5a7dec; $custom-light: #95a2f3; $custom-dark: #000000;
JSON
{
"hex": "#5a7dec",
"rgb": {
"r": 90,
"g": 125,
"b": 236
},
"hsl": {
"h": 225.616,
"s": 79.348,
"l": 63.922
},
"oklch": {
"l": 0.61952,
"c": 0.17133,
"h": 268
},
"luminance": 0.22897
}Semantic roles & 50–950 ramp
primary
#5A7DEC
secondary
#EBDEB7
accent
#A90ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F17
muted
#7E7E85