#5A5FE3#5A5FE3
#5A5FE3 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.7% C 0.196 H 276.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FE3 |
|---|---|
| RGB | rgb(90, 95, 227) |
| HSL | hsl(238, 71%, 62%) |
| HSV | hsv(238, 60%, 89%) |
| CMYK | cmyk(60.4%, 58.1%, 0%, 11%) |
| CIE-LAB | lab(46.85, 36.89, -67.93) |
| CIE-LCH | lch(46.85, 77.30, 298.51°) |
| OKLab | oklab(55.66% 0.0216 -0.1952) |
| OKLCH | oklch(55.66% 0.196 276.3) |
| XYZ | xyz(22.1693, 15.9024, 74.5594) |
| Luminance | 0.1590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.04
Warm Blue
#4B57DB
ΔE00 3.32
Slate Blue
#6A5ACD
ΔE00 4.46
Light Indigo
#6D5ACF
ΔE00 4.63
Iris
#6258C4
ΔE00 5.14
Royal Blue
#4169E1
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FE3 #E3DE5A
analogous
#5AA4E3 #5A5FE3 #995AE3
triadic
#5A5FE3 #E35A5F #5FE35A
tetradic
#5A5FE3 #E35AA4 #E3DE5A #5AE399
square
#5A5FE3 #E35AA4 #E3DE5A #5AE399
split-complementary
#5A5FE3 #E3995A #A4E35A
monochromatic
#1C21A6 #262CDA #5A5FE3 #8E92EC #C3C4F5
Accessibility & contrast
On white
5.02
#5A5FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#5A5FE3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FE3
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FE3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FE3 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#0069E0
Tritanopia (blue-blind)
#007F98
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5a5fe3; /* rgb */ color: rgb(90, 95, 227); /* oklch */ color: oklch(55.7% 0.196 276.3);
Tailwind
colors: {
custom: {
50: '#958ced',
500: '#5a5fe3',
950: '#000000',
},
}SCSS
$custom: #5a5fe3; $custom-light: #958ced; $custom-dark: #000000;
JSON
{
"hex": "#5a5fe3",
"rgb": {
"r": 90,
"g": 95,
"b": 227
},
"hsl": {
"h": 237.81,
"s": 70.984,
"l": 62.157
},
"oklch": {
"l": 0.55657,
"c": 0.19644,
"h": 276.3
},
"luminance": 0.15904
}Semantic roles & 50–950 ramp
primary
#5A5FE3
secondary
#E6E4B3
accent
#CC12D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84