#5A5FE9#5A5FE9
#5A5FE9 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.1% C 0.204 H 276.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FE9 |
|---|---|
| RGB | rgb(90, 95, 233) |
| HSL | hsl(238, 76%, 63%) |
| HSV | hsv(238, 61%, 91%) |
| CMYK | cmyk(61.4%, 59.2%, 0%, 8.6%) |
| CIE-LAB | lab(47.29, 38.84, -70.60) |
| CIE-LCH | lch(47.29, 80.58, 298.82°) |
| OKLab | oklab(56.12% 0.0215 -0.2031) |
| OKLCH | oklch(56.12% 0.204 276) |
| XYZ | xyz(23.0118, 16.2394, 78.9969) |
| Luminance | 0.1624 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.63
Warm Blue
#4B57DB
ΔE00 3.76
Slate Blue
#6A5ACD
ΔE00 4.96
Light Indigo
#6D5ACF
ΔE00 5.05
Royal Blue
#4169E1
ΔE00 5.50
Azul
#1D5DEC
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FE9 #E9E45A
analogous
#5AA6E9 #5A5FE9 #9C5AE9
triadic
#5A5FE9 #E95A5F #5FE95A
tetradic
#5A5FE9 #E95AA6 #E9E45A #5AE99C
square
#5A5FE9 #E95AA6 #E9E45A #5AE99C
split-complementary
#5A5FE9 #E99C5A #A6E95A
monochromatic
#181DB1 #242BE2 #5A5FE9 #9093F0 #C6C8F7
Accessibility & contrast
On white
4.94
#5A5FE9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#5A5FE9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FE9
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FE9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FE9 | 1.00 | 4.94 | 4.25 | 4.94 |
| #FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076EE
Deuteranopia (green-blind)
#006AE6
Tritanopia (blue-blind)
#00819B
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5a5fe9; /* rgb */ color: rgb(90, 95, 233); /* oklch */ color: oklch(56.1% 0.204 276.0);
Tailwind
colors: {
custom: {
50: '#968cf1',
500: '#5a5fe9',
950: '#000000',
},
}SCSS
$custom: #5a5fe9; $custom-light: #968cf1; $custom-dark: #000000;
JSON
{
"hex": "#5a5fe9",
"rgb": {
"r": 90,
"g": 95,
"b": 233
},
"hsl": {
"h": 237.902,
"s": 76.471,
"l": 63.333
},
"oklch": {
"l": 0.56122,
"c": 0.20423,
"h": 276
},
"luminance": 0.16241
}Semantic roles & 50–950 ramp
primary
#5A5FE9
secondary
#E9E7B6
accent
#D20DD9
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85