#5A5DF2#5A5DF2
#5A5DF2 is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.5% C 0.218 H 276.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5DF2 |
|---|---|
| RGB | rgb(90, 93, 242) |
| HSL | hsl(239, 85%, 65%) |
| HSV | hsv(239, 63%, 95%) |
| CMYK | cmyk(62.8%, 61.6%, 0%, 5.1%) |
| CIE-LAB | lab(47.51, 42.95, -75.29) |
| CIE-LCH | lch(47.51, 86.68, 299.70°) |
| OKLab | oklab(56.5% 0.0228 -0.2169) |
| OKLCH | oklch(56.5% 0.218 276) |
| XYZ | xyz(24.1526, 16.4112, 85.8821) |
| Luminance | 0.1641 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.33
Dark Periwinkle
#665FD1
ΔE00 4.53
Light Indigo
#6D5ACF
ΔE00 5.58
Slate Blue
#6A5ACD
ΔE00 5.58
Electric Blue
#0652FF
ΔE00 5.65
Mediumslateblue
#7B68EE
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5DF2 #F2EF5A
analogous
#5AA9F2 #5A5DF2 #A35AF2
triadic
#5A5DF2 #F25A5D #5DF25A
tetradic
#5A5DF2 #F25AA9 #F2EF5A #5AF2A3
square
#5A5DF2 #F25AA9 #F2EF5A #5AF2A3
split-complementary
#5A5DF2 #F2A35A #A9F25A
monochromatic
#0F13C2 #2125EE #5A5DF2 #9395F6 #CBCCFB
Accessibility & contrast
On white
4.90
#5A5DF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#5A5DF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5DF2
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5DF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5DF2 | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#00829F
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5a5df2; /* rgb */ color: rgb(90, 93, 242); /* oklch */ color: oklch(56.5% 0.218 276.0);
Tailwind
colors: {
custom: {
50: '#988bf7',
500: '#5a5df2',
950: '#000000',
},
}SCSS
$custom: #5a5df2; $custom-light: #988bf7; $custom-dark: #000000;
JSON
{
"hex": "#5a5df2",
"rgb": {
"r": 90,
"g": 93,
"b": 242
},
"hsl": {
"h": 238.816,
"s": 85.393,
"l": 65.098
},
"oklch": {
"l": 0.56499,
"c": 0.21809,
"h": 276
},
"luminance": 0.16413
}Semantic roles & 50–950 ramp
primary
#5A5DF2
secondary
#EEEDBA
accent
#DE04E2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85