#5A5FEB#5A5FEB
#5A5FEB is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.3% C 0.207 H 275.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FEB |
|---|---|
| RGB | rgb(90, 95, 235) |
| HSL | hsl(238, 78%, 64%) |
| HSV | hsv(238, 62%, 92%) |
| CMYK | cmyk(61.7%, 59.6%, 0%, 7.8%) |
| CIE-LAB | lab(47.44, 39.49, -71.48) |
| CIE-LCH | lch(47.44, 81.66, 298.92°) |
| OKLab | oklab(56.28% 0.0214 -0.2057) |
| OKLCH | oklch(56.28% 0.207 275.9) |
| XYZ | xyz(23.2992, 16.3544, 80.5101) |
| Luminance | 0.1636 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.84
Warm Blue
#4B57DB
ΔE00 3.94
Slate Blue
#6A5ACD
ΔE00 5.14
Light Indigo
#6D5ACF
ΔE00 5.21
Royal Blue
#4169E1
ΔE00 5.57
Azul
#1D5DEC
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FEB #EBE65A
analogous
#5AA7EB #5A5FEB #9D5AEB
triadic
#5A5FEB #EB5A5F #5FEB5A
tetradic
#5A5FEB #EB5AA7 #EBE65A #5AEB9D
square
#5A5FEB #EB5AA7 #EBE65A #5AEB9D
split-complementary
#5A5FEB #EB9D5A #A7EB5A
monochromatic
#161BB5 #232AE4 #5A5FEB #9194F2 #C7C9F8
Accessibility & contrast
On white
4.92
#5A5FEB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#5A5FEB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FEB
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FEB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FEB | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5a5feb; /* rgb */ color: rgb(90, 95, 235); /* oklch */ color: oklch(56.3% 0.207 275.9);
Tailwind
colors: {
custom: {
50: '#978cf2',
500: '#5a5feb',
950: '#000000',
},
}SCSS
$custom: #5a5feb; $custom-light: #978cf2; $custom-dark: #000000;
JSON
{
"hex": "#5a5feb",
"rgb": {
"r": 90,
"g": 95,
"b": 235
},
"hsl": {
"h": 237.931,
"s": 78.378,
"l": 63.725
},
"oklch": {
"l": 0.56279,
"c": 0.20681,
"h": 275.9
},
"luminance": 0.16356
}Semantic roles & 50–950 ramp
primary
#5A5FEB
secondary
#EAE8B7
accent
#D30BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85