#5A7DC9#5A7DC9
#5A7DC9 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 59.8% C 0.123 H 264.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7DC9 |
|---|---|
| RGB | rgb(90, 125, 201) |
| HSL | hsl(221, 51%, 57%) |
| HSV | hsv(221, 55%, 79%) |
| CMYK | cmyk(55.2%, 37.8%, 0%, 21.2%) |
| CIE-LAB | lab(53.01, 9.95, -43.28) |
| CIE-LCH | lch(53.01, 44.41, 282.95°) |
| OKLab | oklab(59.82% -0.0122 -0.1225) |
| OKLCH | oklch(59.82% 0.123 264.3) |
| XYZ | xyz(22.0891, 21.0562, 58.1473) |
| Luminance | 0.2106 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 4.76
Soft Blue
#6488EA
ΔE00 5.41
Off Blue
#5684AE
ΔE00 5.47
Faded Blue
#658CBB
ΔE00 5.48
Lightish Blue
#3D7AFD
ΔE00 5.72
Dusty Blue
#5A86AD
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7DC9 #C9A65A
analogous
#5AB5C9 #5A7DC9 #6F5AC9
triadic
#5A7DC9 #C95A7D #7DC95A
tetradic
#5A7DC9 #C95AB5 #C9A65A #5AC96F
square
#5A7DC9 #C95AB5 #C9A65A #5AC96F
split-complementary
#5A7DC9 #C96F5A #B5C95A
monochromatic
#2A457F #395DAD #5A7DC9 #88A1D8 #B6C6E7
Accessibility & contrast
On white
4.03
#5A7DC9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.21
#5A7DC9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7DC9
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7DC9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7DC9 | 1.00 | 4.03 | 5.21 | 5.21 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E84CC
Deuteranopia (green-blind)
#507AC7
Tritanopia (blue-blind)
#168E99
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #5a7dc9; /* rgb */ color: rgb(90, 125, 201); /* oklch */ color: oklch(59.8% 0.123 264.3);
Tailwind
colors: {
custom: {
50: '#90a2da',
500: '#5a7dc9',
950: '#000000',
},
}SCSS
$custom: #5a7dc9; $custom-light: #90a2da; $custom-dark: #000000;
JSON
{
"hex": "#5a7dc9",
"rgb": {
"r": 90,
"g": 125,
"b": 201
},
"hsl": {
"h": 221.081,
"s": 50.685,
"l": 57.059
},
"oklch": {
"l": 0.59819,
"c": 0.12316,
"h": 264.3
},
"luminance": 0.21058
}Semantic roles & 50–950 ramp
primary
#5A7DC9
secondary
#D6C8A9
accent
#AE4EDA
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F15
muted
#7E7E83