#5A5FE8#5A5FE8
#5A5FE8 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.0% C 0.203 H 276.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FE8 |
|---|---|
| RGB | rgb(90, 95, 232) |
| HSL | hsl(238, 76%, 63%) |
| HSV | hsv(238, 61%, 91%) |
| CMYK | cmyk(61.2%, 59.1%, 0%, 9%) |
| CIE-LAB | lab(47.21, 38.52, -70.15) |
| CIE-LCH | lch(47.21, 80.03, 298.77°) |
| OKLab | oklab(56.04% 0.0215 -0.2018) |
| OKLCH | oklch(56.04% 0.203 276.1) |
| XYZ | xyz(22.8694, 16.1825, 78.2467) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.53
Warm Blue
#4B57DB
ΔE00 3.68
Slate Blue
#6A5ACD
ΔE00 4.87
Light Indigo
#6D5ACF
ΔE00 4.98
Royal Blue
#4169E1
ΔE00 5.47
Azul
#1D5DEC
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FE8 #E8E35A
analogous
#5AA6E8 #5A5FE8 #9C5AE8
triadic
#5A5FE8 #E85A5F #5FE85A
tetradic
#5A5FE8 #E85AA6 #E8E35A #5AE89C
square
#5A5FE8 #E85AA6 #E8E35A #5AE89C
split-complementary
#5A5FE8 #E89C5A #A6E85A
monochromatic
#181EAF #242BE1 #5A5FE8 #9093EF #C5C7F7
Accessibility & contrast
On white
4.96
#5A5FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#5A5FE8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FE8
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FE8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FE8 | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#006AE5
Tritanopia (blue-blind)
#00809A
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5a5fe8; /* rgb */ color: rgb(90, 95, 232); /* oklch */ color: oklch(56.0% 0.203 276.1);
Tailwind
colors: {
custom: {
50: '#968cf0',
500: '#5a5fe8',
950: '#000000',
},
}SCSS
$custom: #5a5fe8; $custom-light: #968cf0; $custom-dark: #000000;
JSON
{
"hex": "#5a5fe8",
"rgb": {
"r": 90,
"g": 95,
"b": 232
},
"hsl": {
"h": 237.887,
"s": 75.532,
"l": 63.137
},
"oklch": {
"l": 0.56044,
"c": 0.20294,
"h": 276.1
},
"luminance": 0.16184
}Semantic roles & 50–950 ramp
primary
#5A5FE8
secondary
#E8E7B5
accent
#D10ED8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C17
muted
#7E7D85