#5A5FCA#5A5FCA
#5A5FCA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.8% C 0.163 H 277.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FCA |
|---|---|
| RGB | rgb(90, 95, 202) |
| HSL | hsl(237, 51%, 57%) |
| HSV | hsv(237, 55%, 79%) |
| CMYK | cmyk(55.4%, 53%, 0%, 20.8%) |
| CIE-LAB | lab(45.11, 28.77, -56.47) |
| CIE-LCH | lch(45.11, 63.38, 297.00°) |
| OKLab | oklab(53.82% 0.021 -0.1615) |
| OKLCH | oklch(53.82% 0.163 277.4) |
| XYZ | xyz(18.9659, 14.6211, 57.6884) |
| Luminance | 0.1462 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.44
Iris
#6258C4
ΔE00 3.11
Warm Blue
#4B57DB
ΔE00 3.62
Slate Blue
#6A5ACD
ΔE00 3.66
Light Indigo
#6D5ACF
ΔE00 4.19
Royal Blue
#4169E1
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FCA #CAC55A
analogous
#5A97CA #5A5FCA #8D5ACA
triadic
#5A5FCA #CA5A5F #5FCA5A
tetradic
#5A5FCA #CA5A97 #CAC55A #5ACA8D
square
#5A5FCA #CA5A97 #CAC55A #5ACA8D
split-complementary
#5A5FCA #CA8D5A #97CA5A
monochromatic
#292D80 #383DAF #5A5FCA #888CD9 #B7B9E8
Accessibility & contrast
On white
5.35
#5A5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#5A5FCA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FCA
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FCA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FCA | 1.00 | 5.35 | 3.92 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#216FCE
Deuteranopia (green-blind)
#0566C8
Tritanopia (blue-blind)
#1F778B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5a5fca; /* rgb */ color: rgb(90, 95, 202); /* oklch */ color: oklch(53.8% 0.163 277.4);
Tailwind
colors: {
custom: {
50: '#918cdb',
500: '#5a5fca',
950: '#000000',
},
}SCSS
$custom: #5a5fca; $custom-light: #918cdb; $custom-dark: #000000;
JSON
{
"hex": "#5a5fca",
"rgb": {
"r": 90,
"g": 95,
"b": 202
},
"hsl": {
"h": 237.321,
"s": 51.376,
"l": 57.255
},
"oklch": {
"l": 0.53815,
"c": 0.16291,
"h": 277.4
},
"luminance": 0.14622
}Semantic roles & 50–950 ramp
primary
#5A5FCA
secondary
#D7D5A9
accent
#D54DDB
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83