#5A5AE1#5A5AE1
#5A5AE1 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.6% C 0.200 H 277.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5AE1 |
|---|---|
| RGB | rgb(90, 90, 225) |
| HSL | hsl(240, 69%, 62%) |
| HSV | hsv(240, 60%, 88%) |
| CMYK | cmyk(60%, 60%, 0%, 11.8%) |
| CIE-LAB | lab(45.53, 39.26, -68.94) |
| CIE-LCH | lch(45.53, 79.34, 299.66°) |
| OKLab | oklab(54.64% 0.0261 -0.1983) |
| OKLCH | oklch(54.64% 0.2 277.5) |
| XYZ | xyz(21.4588, 14.9206, 72.9687) |
| Luminance | 0.1492 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.43
Dark Periwinkle
#665FD1
ΔE00 3.03
Slate Blue
#6A5ACD
ΔE00 3.76
Light Indigo
#6D5ACF
ΔE00 3.96
Iris
#6258C4
ΔE00 4.30
Electric Blue
#0652FF
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5AE1 #E1E15A
analogous
#5A9EE1 #5A5AE1 #9E5AE1
triadic
#5A5AE1 #E15A5A #5AE15A
tetradic
#5A5AE1 #E15A9E #E1E15A #5AE19E
square
#5A5AE1 #E15A9E #E1E15A #5AE19E
split-complementary
#5A5AE1 #E19E5A #9EE15A
monochromatic
#1E1EA3 #2727D7 #5A5AE1 #8E8EEA #C2C2F4
Accessibility & contrast
On white
5.27
#5A5AE1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#5A5AE1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5AE1
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5AE1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5AE1 | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072E5
Deuteranopia (green-blind)
#0066DE
Tritanopia (blue-blind)
#007B95
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5a5ae1; /* rgb */ color: rgb(90, 90, 225); /* oklch */ color: oklch(54.6% 0.200 277.5);
Tailwind
colors: {
custom: {
50: '#9589eb',
500: '#5a5ae1',
950: '#000000',
},
}SCSS
$custom: #5a5ae1; $custom-light: #9589eb; $custom-dark: #000000;
JSON
{
"hex": "#5a5ae1",
"rgb": {
"r": 90,
"g": 90,
"b": 225
},
"hsl": {
"h": 240,
"s": 69.231,
"l": 61.765
},
"oklch": {
"l": 0.54636,
"c": 0.19998,
"h": 277.5
},
"luminance": 0.14922
}Semantic roles & 50–950 ramp
primary
#5A5AE1
secondary
#E4E4B2
accent
#D114D1
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84