#5A7DC7#5A7DC7
#5A7DC7 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 59.7% C 0.120 H 263.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7DC7 |
|---|---|
| RGB | rgb(90, 125, 199) |
| HSL | hsl(221, 49%, 57%) |
| HSV | hsv(221, 55%, 78%) |
| CMYK | cmyk(54.8%, 37.2%, 0%, 22%) |
| CIE-LAB | lab(52.91, 9.30, -42.30) |
| CIE-LCH | lch(52.91, 43.31, 282.40°) |
| OKLab | oklab(59.71% -0.0127 -0.1197) |
| OKLCH | oklch(59.71% 0.12 263.9) |
| XYZ | xyz(21.8554, 20.9627, 56.9163) |
| Luminance | 0.2096 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cornflower Blue
#5170D7
ΔE00 4.85
Off Blue
#5684AE
ΔE00 5.37
Faded Blue
#658CBB
ΔE00 5.44
Soft Blue
#6488EA
ΔE00 5.59
Dusty Blue
#5A86AD
ΔE00 5.75
Windows Blue
#3778BF
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7DC7 #C7A45A
analogous
#5AB4C7 #5A7DC7 #6E5AC7
triadic
#5A7DC7 #C75A7D #7DC75A
tetradic
#5A7DC7 #C75AB4 #C7A45A #5AC76E
square
#5A7DC7 #C75AB4 #C7A45A #5AC76E
split-complementary
#5A7DC7 #C76E5A #B4C75A
monochromatic
#2A457C #3A5EAA #5A7DC7 #88A1D7 #B5C5E6
Accessibility & contrast
On white
4.04
#5A7DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.19
#5A7DC7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7DC7
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7DC7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7DC7 | 1.00 | 4.04 | 5.19 | 5.19 |
| #FFFFFF | 4.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F84CA
Deuteranopia (green-blind)
#527AC5
Tritanopia (blue-blind)
#1A8D98
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #5a7dc7; /* rgb */ color: rgb(90, 125, 199); /* oklch */ color: oklch(59.7% 0.120 263.9);
Tailwind
colors: {
custom: {
50: '#90a2d8',
500: '#5a7dc7',
950: '#000000',
},
}SCSS
$custom: #5a7dc7; $custom-light: #90a2d8; $custom-dark: #000000;
JSON
{
"hex": "#5a7dc7",
"rgb": {
"r": 90,
"g": 125,
"b": 199
},
"hsl": {
"h": 220.734,
"s": 49.321,
"l": 56.667
},
"oklch": {
"l": 0.59707,
"c": 0.12037,
"h": 263.9
},
"luminance": 0.20964
}Semantic roles & 50–950 ramp
primary
#5A7DC7
secondary
#D5C6A8
accent
#AD4FD9
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F14
muted
#7E7E83