#5A5EA5#5A5EA5
#5A5EA5 is a mid, moderate blue. Relative luminance 0.129; OKLCH L 51.2% C 0.111 H 279.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5EA5 |
|---|---|
| RGB | rgb(90, 94, 165) |
| HSL | hsl(237, 29%, 50%) |
| HSV | hsv(237, 45%, 65%) |
| CMYK | cmyk(45.5%, 43%, 0%, 35.3%) |
| CIE-LAB | lab(42.60, 17.65, -38.88) |
| CIE-LCH | lch(42.60, 42.70, 294.41°) |
| OKLab | oklab(51.2% 0.0179 -0.1099) |
| OKLCH | oklch(51.2% 0.111 279.2) |
| XYZ | xyz(15.0086, 12.8949, 37.2882) |
| Luminance | 0.1290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dusky Blue
#475F94
ΔE00 5.28
Twilight
#4E518B
ΔE00 5.71
Iris
#6258C4
ΔE00 5.95
Dusk
#4E5481
ΔE00 6.94
Denim Blue
#3B5B92
ΔE00 7.15
Dark Periwinkle
#665FD1
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5EA5 #A5A15A
analogous
#5A84A5 #5A5EA5 #7B5AA5
triadic
#5A5EA5 #A55A5E #5EA55A
tetradic
#5A5EA5 #A55A84 #A5A15A #5AA57B
square
#5A5EA5 #A55A84 #A5A15A #5AA57B
split-complementary
#5A5EA5 #A57B5A #84A55A
monochromatic
#2F3156 #44477D #5A5EA5 #8285BB #A9ABD0
Accessibility & contrast
On white
5.87
#5A5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#5A5EA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5EA5
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5EA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5EA5 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4368A8
Deuteranopia (green-blind)
#3E62A3
Tritanopia (blue-blind)
#416D79
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #5a5ea5; /* rgb */ color: rgb(90, 94, 165); /* oklch */ color: oklch(51.2% 0.111 279.2);
Tailwind
colors: {
custom: {
50: '#8d8bc0',
500: '#5a5ea5',
950: '#000000',
},
}SCSS
$custom: #5a5ea5; $custom-light: #8d8bc0; $custom-dark: #000000;
JSON
{
"hex": "#5a5ea5",
"rgb": {
"r": 90,
"g": 94,
"b": 165
},
"hsl": {
"h": 236.8,
"s": 29.412,
"l": 50
},
"oklch": {
"l": 0.51197,
"c": 0.11138,
"h": 279.2
},
"luminance": 0.12896
}Semantic roles & 50–950 ramp
primary
#5A5EA5
secondary
#BEBC9D
accent
#C062C6
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81