#5A7EC9#5A7EC9
#5A7EC9 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.0% C 0.122 H 263.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7EC9 |
|---|---|
| RGB | rgb(90, 126, 201) |
| HSL | hsl(221, 51%, 57%) |
| HSV | hsv(221, 55%, 79%) |
| CMYK | cmyk(55.2%, 37.3%, 0%, 21.2%) |
| CIE-LAB | lab(53.29, 9.34, -42.84) |
| CIE-LCH | lch(53.29, 43.85, 282.30°) |
| OKLab | oklab(60.03% -0.0134 -0.1213) |
| OKLCH | oklch(60.03% 0.122 263.7) |
| XYZ | xyz(22.2163, 21.3107, 58.1897) |
| Luminance | 0.2131 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 5.09
Faded Blue
#658CBB
ΔE00 5.16
Soft Blue
#6488EA
ΔE00 5.20
Off Blue
#5684AE
ΔE00 5.27
Dusty Blue
#5A86AD
ΔE00 5.62
Lightish Blue
#3D7AFD
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7EC9 #C9A55A
analogous
#5AB5C9 #5A7EC9 #6E5AC9
triadic
#5A7EC9 #C95A7E #7EC95A
tetradic
#5A7EC9 #C95AB5 #C9A55A #5AC96E
square
#5A7EC9 #C95AB5 #C9A55A #5AC96E
split-complementary
#5A7EC9 #C96E5A #B5C95A
monochromatic
#2A457F #395EAD #5A7EC9 #88A2D8 #B6C6E7
Accessibility & contrast
On white
3.99
#5A7EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.26
#5A7EC9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7EC9
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7EC9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7EC9 | 1.00 | 3.99 | 5.26 | 5.26 |
| #FFFFFF | 3.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F85CC
Deuteranopia (green-blind)
#527BC7
Tritanopia (blue-blind)
#168E9A
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #5a7ec9; /* rgb */ color: rgb(90, 126, 201); /* oklch */ color: oklch(60.0% 0.122 263.7);
Tailwind
colors: {
custom: {
50: '#90a3da',
500: '#5a7ec9',
950: '#000000',
},
}SCSS
$custom: #5a7ec9; $custom-light: #90a3da; $custom-dark: #000000;
JSON
{
"hex": "#5a7ec9",
"rgb": {
"r": 90,
"g": 126,
"b": 201
},
"hsl": {
"h": 220.541,
"s": 50.685,
"l": 57.059
},
"oklch": {
"l": 0.60034,
"c": 0.12199,
"h": 263.7
},
"luminance": 0.21312
}Semantic roles & 50–950 ramp
primary
#5A7EC9
secondary
#D6C7A9
accent
#AD4EDA
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F15
muted
#7E7E83