#5A5DCB#5A5DCB
#5A5DCB is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.5% C 0.167 H 278.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5DCB |
|---|---|
| RGB | rgb(90, 93, 203) |
| HSL | hsl(238, 52%, 57%) |
| HSV | hsv(238, 56%, 80%) |
| CMYK | cmyk(55.7%, 54.2%, 0%, 20.4%) |
| CIE-LAB | lab(44.68, 30.33, -57.75) |
| CIE-LCH | lch(44.68, 65.23, 297.71°) |
| OKLab | oklab(53.51% 0.0231 -0.1653) |
| OKLCH | oklch(53.51% 0.167 278) |
| XYZ | xyz(18.9069, 14.3129, 58.2547) |
| Luminance | 0.1431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.32
Iris
#6258C4
ΔE00 2.61
Warm Blue
#4B57DB
ΔE00 3.19
Slate Blue
#6A5ACD
ΔE00 3.26
Light Indigo
#6D5ACF
ΔE00 3.81
Royal Blue
#4169E1
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5DCB #CBC85A
analogous
#5A96CB #5A5DCB #8F5ACB
triadic
#5A5DCB #CB5A5D #5DCB5A
tetradic
#5A5DCB #CB5A96 #CBC85A #5ACB8F
square
#5A5DCB #CB5A96 #CBC85A #5ACB8F
split-complementary
#5A5DCB #CB8F5A #96CB5A
monochromatic
#292B82 #383BB0 #5A5DCB #898BDA #B7B8E8
Accessibility & contrast
On white
5.44
#5A5DCB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#5A5DCB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5DCB
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5DCB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5DCB | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#176ECF
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#1E768B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5a5dcb; /* rgb */ color: rgb(90, 93, 203); /* oklch */ color: oklch(53.5% 0.167 278.0);
Tailwind
colors: {
custom: {
50: '#928bdb',
500: '#5a5dcb',
950: '#000000',
},
}SCSS
$custom: #5a5dcb; $custom-light: #928bdb; $custom-dark: #000000;
JSON
{
"hex": "#5a5dcb",
"rgb": {
"r": 90,
"g": 93,
"b": 203
},
"hsl": {
"h": 238.407,
"s": 52.074,
"l": 57.451
},
"oklch": {
"l": 0.53512,
"c": 0.16693,
"h": 278
},
"luminance": 0.14314
}Semantic roles & 50–950 ramp
primary
#5A5DCB
secondary
#D7D6AA
accent
#D84CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83