#5A5AB1#5A5AB1
#5A5AB1 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.2% C 0.135 H 280.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5AB1 |
|---|---|
| RGB | rgb(90, 90, 177) |
| HSL | hsl(240, 36%, 52%) |
| HSV | hsv(240, 49%, 69%) |
| CMYK | cmyk(49.2%, 49.2%, 0%, 30.6%) |
| CIE-LAB | lab(42.25, 23.90, -46.53) |
| CIE-LCH | lch(42.25, 52.31, 297.18°) |
| OKLab | oklab(51.15% 0.0246 -0.1324) |
| OKLCH | oklch(51.15% 0.135 280.5) |
| XYZ | xyz(15.8060, 12.6595, 43.1971) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.50
Slate Blue
#6A5ACD
ΔE00 5.22
Dark Periwinkle
#665FD1
ΔE00 5.39
Light Indigo
#6D5ACF
ΔE00 5.78
Warm Blue
#4B57DB
ΔE00 6.39
Dusky Blue
#475F94
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5AB1 #B1B15A
analogous
#5A86B1 #5A5AB1 #865AB1
triadic
#5A5AB1 #B15A5A #5AB15A
tetradic
#5A5AB1 #B15A86 #B1B15A #5AB186
square
#5A5AB1 #B15A86 #B1B15A #5AB186
split-complementary
#5A5AB1 #B1865A #86B15A
monochromatic
#2E2E62 #42428C #5A5AB1 #8484C5 #ADADD8
Accessibility & contrast
On white
5.95
#5A5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#5A5AB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5AB1
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5AB1 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3367B4
Deuteranopia (green-blind)
#2C60AF
Tritanopia (blue-blind)
#3A6D7D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5a5ab1; /* rgb */ color: rgb(90, 90, 177); /* oklch */ color: oklch(51.2% 0.135 280.5);
Tailwind
colors: {
custom: {
50: '#8e88c9',
500: '#5a5ab1',
950: '#000000',
},
}SCSS
$custom: #5a5ab1; $custom-light: #8e88c9; $custom-dark: #000000;
JSON
{
"hex": "#5a5ab1",
"rgb": {
"r": 90,
"g": 90,
"b": 177
},
"hsl": {
"h": 240,
"s": 35.802,
"l": 52.353
},
"oklch": {
"l": 0.51151,
"c": 0.13465,
"h": 280.5
},
"luminance": 0.1266
}Semantic roles & 50–950 ramp
primary
#5A5AB1
secondary
#C6C6A0
accent
#CC5CCC
background
#F9F8FC
surface
#F1EFF8
border
#CBCAD1
text
#0D0B13
muted
#7E7C82