#5A5CF1#5A5CF1
#5A5CF1 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.3% C 0.218 H 276.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5CF1 |
|---|---|
| RGB | rgb(90, 92, 241) |
| HSL | hsl(239, 84%, 65%) |
| HSV | hsv(239, 63%, 95%) |
| CMYK | cmyk(62.7%, 61.8%, 0%, 5.5%) |
| CIE-LAB | lab(47.21, 43.22, -75.23) |
| CIE-LCH | lch(47.21, 86.76, 299.88°) |
| OKLab | oklab(56.25% 0.0236 -0.2167) |
| OKLCH | oklch(56.25% 0.218 276.2) |
| XYZ | xyz(23.9156, 16.1769, 85.0642) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.10
Dark Periwinkle
#665FD1
ΔE00 4.43
Slate Blue
#6A5ACD
ΔE00 5.39
Light Indigo
#6D5ACF
ΔE00 5.40
Electric Blue
#0652FF
ΔE00 5.52
Azul
#1D5DEC
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5CF1 #F1EF5A
analogous
#5AA8F1 #5A5CF1 #A35AF1
triadic
#5A5CF1 #F15A5C #5CF15A
tetradic
#5A5CF1 #F15AA8 #F1EF5A #5AF1A3
square
#5A5CF1 #F15AA8 #F1EF5A #5AF1A3
split-complementary
#5A5CF1 #F1A35A #A8F15A
monochromatic
#1013C0 #2224EC #5A5CF1 #9294F6 #CBCBFB
Accessibility & contrast
On white
4.96
#5A5CF1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#5A5CF1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5CF1
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5CF1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5CF1 | 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)
#0077F6
Deuteranopia (green-blind)
#0069EE
Tritanopia (blue-blind)
#00829E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5a5cf1; /* rgb */ color: rgb(90, 92, 241); /* oklch */ color: oklch(56.3% 0.218 276.2);
Tailwind
colors: {
custom: {
50: '#988af7',
500: '#5a5cf1',
950: '#000000',
},
}SCSS
$custom: #5a5cf1; $custom-light: #988af7; $custom-dark: #000000;
JSON
{
"hex": "#5a5cf1",
"rgb": {
"r": 90,
"g": 92,
"b": 241
},
"hsl": {
"h": 239.205,
"s": 84.358,
"l": 64.902
},
"oklch": {
"l": 0.56252,
"c": 0.218,
"h": 276.2
},
"luminance": 0.16179
}Semantic roles & 50–950 ramp
primary
#5A5CF1
secondary
#EDECBA
accent
#DE05E1
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85