#5A7ECC#5A7ECC
#5A7ECC is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.2% C 0.126 H 264.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7ECC |
|---|---|
| RGB | rgb(90, 126, 204) |
| HSL | hsl(221, 53%, 58%) |
| HSV | hsv(221, 56%, 80%) |
| CMYK | cmyk(55.9%, 38.2%, 0%, 20%) |
| CIE-LAB | lab(53.44, 10.32, -44.30) |
| CIE-LCH | lch(53.44, 45.49, 283.11°) |
| OKLab | oklab(60.2% -0.0127 -0.1255) |
| OKLCH | oklch(60.2% 0.126 264.2) |
| XYZ | xyz(22.5727, 21.4532, 60.0664) |
| Luminance | 0.2145 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Soft Blue
#6488EA
ΔE00 4.94
Cornflower Blue
#5170D7
ΔE00 4.99
Faded Blue
#658CBB
ΔE00 5.23
Lightish Blue
#3D7AFD
ΔE00 5.42
Off Blue
#5684AE
ΔE00 5.44
Dodger Blue
#3E82FC
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7ECC #CCA85A
analogous
#5AB7CC #5A7ECC #6F5ACC
triadic
#5A7ECC #CC5A7E #7ECC5A
tetradic
#5A7ECC #CC5AB7 #CCA85A #5ACC6F
square
#5A7ECC #CC5AB7 #CCA85A #5ACC6F
split-complementary
#5A7ECC #CC6F5A #B7CC5A
monochromatic
#294583 #375EB2 #5A7ECC #89A3DA #B7C7E9
Accessibility & contrast
On white
3.97
#5A7ECC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.29
#5A7ECC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #5A7ECC
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7ECC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##5A7ECC | 1.00 | 3.97 | 5.29 | 5.29 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E85CF
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#0E8F9B
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #5a7ecc; /* rgb */ color: rgb(90, 126, 204); /* oklch */ color: oklch(60.2% 0.126 264.2);
Tailwind
colors: {
custom: {
50: '#91a3dc',
500: '#5a7ecc',
950: '#000000',
},
}SCSS
$custom: #5a7ecc; $custom-light: #91a3dc; $custom-dark: #000000;
JSON
{
"hex": "#5a7ecc",
"rgb": {
"r": 90,
"g": 126,
"b": 204
},
"hsl": {
"h": 221.053,
"s": 52.778,
"l": 57.647
},
"oklch": {
"l": 0.60203,
"c": 0.12617,
"h": 264.2
},
"luminance": 0.21455
}Semantic roles & 50–950 ramp
primary
#5A7ECC
secondary
#D8C9AA
accent
#AF4CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0F15
muted
#7E7E83