#5A5FD5#5A5FD5
#5A5FD5 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.6% C 0.178 H 276.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FD5 |
|---|---|
| RGB | rgb(90, 95, 213) |
| HSL | hsl(238, 59%, 59%) |
| HSV | hsv(238, 58%, 84%) |
| CMYK | cmyk(57.7%, 55.4%, 0%, 16.5%) |
| CIE-LAB | lab(45.85, 32.34, -61.58) |
| CIE-LCH | lch(45.85, 69.55, 297.71°) |
| OKLab | oklab(54.61% 0.0215 -0.1766) |
| OKLCH | oklch(54.61% 0.178 276.9) |
| XYZ | xyz(20.3150, 15.1607, 64.7937) |
| Luminance | 0.1516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.15
Warm Blue
#4B57DB
ΔE00 2.99
Slate Blue
#6A5ACD
ΔE00 3.67
Iris
#6258C4
ΔE00 3.77
Light Indigo
#6D5ACF
ΔE00 4.06
Royal Blue
#4169E1
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FD5 #D5D05A
analogous
#5A9DD5 #5A5FD5 #935AD5
triadic
#5A5FD5 #D55A5F #5FD55A
tetradic
#5A5FD5 #D55A9D #D5D05A #5AD593
square
#5A5FD5 #D55A9D #D5D05A #5AD593
split-complementary
#5A5FD5 #D5935A #9DD55A
monochromatic
#252990 #3137C1 #5A5FD5 #8B8EE1 #BCBEEE
Accessibility & contrast
On white
5.21
#5A5FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#5A5FD5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FD5
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FD5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FD5 | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072D9
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#027B91
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5a5fd5; /* rgb */ color: rgb(90, 95, 213); /* oklch */ color: oklch(54.6% 0.178 276.9);
Tailwind
colors: {
custom: {
50: '#938ce3',
500: '#5a5fd5',
950: '#000000',
},
}SCSS
$custom: #5a5fd5; $custom-light: #938ce3; $custom-dark: #000000;
JSON
{
"hex": "#5a5fd5",
"rgb": {
"r": 90,
"g": 95,
"b": 213
},
"hsl": {
"h": 237.561,
"s": 59.42,
"l": 59.412
},
"oklch": {
"l": 0.54606,
"c": 0.17788,
"h": 276.9
},
"luminance": 0.15162
}Semantic roles & 50–950 ramp
primary
#5A5FD5
secondary
#DDDBAD
accent
#DC45E3
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C15
muted
#7E7D84