#5A5FE5#5A5FE5
#5A5FE5 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.8% C 0.199 H 276.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FE5 |
|---|---|
| RGB | rgb(90, 95, 229) |
| HSL | hsl(238, 73%, 63%) |
| HSV | hsv(238, 61%, 90%) |
| CMYK | cmyk(60.7%, 58.5%, 0%, 10.2%) |
| CIE-LAB | lab(46.99, 37.54, -68.82) |
| CIE-LCH | lch(46.99, 78.39, 298.61°) |
| OKLab | oklab(55.81% 0.0215 -0.1979) |
| OKLCH | oklch(55.81% 0.199 276.2) |
| XYZ | xyz(22.4469, 16.0135, 76.0216) |
| Luminance | 0.1601 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.23
Warm Blue
#4B57DB
ΔE00 3.45
Slate Blue
#6A5ACD
ΔE00 4.62
Light Indigo
#6D5ACF
ΔE00 4.76
Iris
#6258C4
ΔE00 5.36
Royal Blue
#4169E1
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FE5 #E5E05A
analogous
#5AA4E5 #5A5FE5 #9B5AE5
triadic
#5A5FE5 #E55A5F #5FE55A
tetradic
#5A5FE5 #E55AA4 #E5E05A #5AE59B
square
#5A5FE5 #E55AA4 #E5E05A #5AE59B
split-complementary
#5A5FE5 #E59B5A #A4E55A
monochromatic
#1B20AA #252CDD #5A5FE5 #8F92ED #C4C6F6
Accessibility & contrast
On white
5.00
#5A5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#5A5FE5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FE5
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FE5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FE5 | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E9
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#008099
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5a5fe5; /* rgb */ color: rgb(90, 95, 229); /* oklch */ color: oklch(55.8% 0.199 276.2);
Tailwind
colors: {
custom: {
50: '#968cee',
500: '#5a5fe5',
950: '#000000',
},
}SCSS
$custom: #5a5fe5; $custom-light: #968cee; $custom-dark: #000000;
JSON
{
"hex": "#5a5fe5",
"rgb": {
"r": 90,
"g": 95,
"b": 229
},
"hsl": {
"h": 237.842,
"s": 72.775,
"l": 62.549
},
"oklch": {
"l": 0.55811,
"c": 0.19905,
"h": 276.2
},
"luminance": 0.16015
}Semantic roles & 50–950 ramp
primary
#5A5FE5
secondary
#E7E5B4
accent
#CE11D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84