#5A5EF2#5A5EF2
#5A5EF2 is a mid, highly saturated blue. Relative luminance 0.166; OKLCH L 56.7% C 0.217 H 275.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5EF2 |
|---|---|
| RGB | rgb(90, 94, 242) |
| HSL | hsl(238, 85%, 65%) |
| HSV | hsv(238, 63%, 95%) |
| CMYK | cmyk(62.8%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(47.74, 42.36, -74.92) |
| CIE-LCH | lch(47.74, 86.06, 299.48°) |
| OKLab | oklab(56.67% 0.022 -0.2158) |
| OKLCH | oklch(56.67% 0.217 275.8) |
| XYZ | xyz(24.2409, 16.5879, 85.9115) |
| Luminance | 0.1659 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.46
Dark Periwinkle
#665FD1
ΔE00 4.55
Mediumslateblue
#7B68EE
ΔE00 5.66
Light Indigo
#6D5ACF
ΔE00 5.69
Slate Blue
#6A5ACD
ΔE00 5.69
Electric Blue
#0652FF
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5EF2 #F2EE5A
analogous
#5AAAF2 #5A5EF2 #A25AF2
triadic
#5A5EF2 #F25A5E #5EF25A
tetradic
#5A5EF2 #F25AAA #F2EE5A #5AF2A2
square
#5A5EF2 #F25AAA #F2EE5A #5AF2A2
split-complementary
#5A5EF2 #F2A25A #AAF25A
monochromatic
#0F14C2 #2127EE #5A5EF2 #9395F6 #CBCDFB
Accessibility & contrast
On white
4.86
#5A5EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#5A5EF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5EF2
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5EF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5EF2 | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#006BEF
Tritanopia (blue-blind)
#00839F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5ef2; /* rgb */ color: rgb(90, 94, 242); /* oklch */ color: oklch(56.7% 0.217 275.8);
Tailwind
colors: {
custom: {
50: '#988cf7',
500: '#5a5ef2',
950: '#000000',
},
}SCSS
$custom: #5a5ef2; $custom-light: #988cf7; $custom-dark: #000000;
JSON
{
"hex": "#5a5ef2",
"rgb": {
"r": 90,
"g": 94,
"b": 242
},
"hsl": {
"h": 238.421,
"s": 85.393,
"l": 65.098
},
"oklch": {
"l": 0.56666,
"c": 0.21693,
"h": 275.8
},
"luminance": 0.1659
}Semantic roles & 50–950 ramp
primary
#5A5EF2
secondary
#EEECBA
accent
#DC04E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85