#5A5FCB#5A5FCB
#5A5FCB is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.9% C 0.164 H 277.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FCB |
|---|---|
| RGB | rgb(90, 95, 203) |
| HSL | hsl(237, 52%, 57%) |
| HSV | hsv(237, 56%, 80%) |
| CMYK | cmyk(55.7%, 53.2%, 0%, 20.4%) |
| CIE-LAB | lab(45.18, 29.09, -56.94) |
| CIE-LCH | lch(45.18, 63.94, 297.06°) |
| OKLab | oklab(53.89% 0.0211 -0.1629) |
| OKLCH | oklch(53.89% 0.164 277.4) |
| XYZ | xyz(19.0847, 14.6686, 58.3140) |
| Luminance | 0.1467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.37
Iris
#6258C4
ΔE00 3.15
Warm Blue
#4B57DB
ΔE00 3.54
Slate Blue
#6A5ACD
ΔE00 3.64
Light Indigo
#6D5ACF
ΔE00 4.15
Royal Blue
#4169E1
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FCB #CBC65A
analogous
#5A98CB #5A5FCB #8D5ACB
triadic
#5A5FCB #CB5A5F #5FCB5A
tetradic
#5A5FCB #CB5A98 #CBC65A #5ACB8D
square
#5A5FCB #CB5A98 #CBC65A #5ACB8D
split-complementary
#5A5FCB #CB8D5A #98CB5A
monochromatic
#292D82 #383DB0 #5A5FCB #898CDA #B7B9E8
Accessibility & contrast
On white
5.34
#5A5FCB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#5A5FCB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FCB
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FCB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FCB | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F70CF
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#1E788C
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5a5fcb; /* rgb */ color: rgb(90, 95, 203); /* oklch */ color: oklch(53.9% 0.164 277.4);
Tailwind
colors: {
custom: {
50: '#928cdb',
500: '#5a5fcb',
950: '#000000',
},
}SCSS
$custom: #5a5fcb; $custom-light: #928cdb; $custom-dark: #000000;
JSON
{
"hex": "#5a5fcb",
"rgb": {
"r": 90,
"g": 95,
"b": 203
},
"hsl": {
"h": 237.345,
"s": 52.074,
"l": 57.451
},
"oklch": {
"l": 0.53885,
"c": 0.16428,
"h": 277.4
},
"luminance": 0.1467
}Semantic roles & 50–950 ramp
primary
#5A5FCB
secondary
#D7D5AA
accent
#D54CDC
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83