#5A5FF3#5A5FF3
#5A5FF3 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.9% C 0.217 H 275.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FF3 |
|---|---|
| RGB | rgb(90, 95, 243) |
| HSL | hsl(238, 86%, 65%) |
| HSV | hsv(238, 63%, 95%) |
| CMYK | cmyk(63%, 60.9%, 0%, 4.7%) |
| CIE-LAB | lab(48.04, 42.09, -74.98) |
| CIE-LCH | lch(48.04, 85.99, 299.30°) |
| OKLab | oklab(56.91% 0.0211 -0.216) |
| OKLCH | oklch(56.91% 0.217 275.6) |
| XYZ | xyz(24.4810, 16.8271, 86.7345) |
| Luminance | 0.1683 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 4.69
Warm Blue
#4B57DB
ΔE00 4.72
Mediumslateblue
#7B68EE
ΔE00 5.51
Light Indigo
#6D5ACF
ΔE00 5.90
Slate Blue
#6A5ACD
ΔE00 5.91
Royal Blue
#4169E1
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FF3 #F3EE5A
analogous
#5AACF3 #5A5FF3 #A15AF3
triadic
#5A5FF3 #F35A5F #5FF35A
tetradic
#5A5FF3 #F35AAC #F3EE5A #5AF3A1
square
#5A5FF3 #F35AAC #F3EE5A #5AF3A1
split-complementary
#5A5FF3 #F3A15A #ACF35A
monochromatic
#0E14C4 #2128EF #5A5FF3 #9396F7 #CCCEFB
Accessibility & contrast
On white
4.81
#5A5FF3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.37
#5A5FF3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FF3
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FF3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FF3 | 1.00 | 4.81 | 4.37 | 4.81 |
| #FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079F8
Deuteranopia (green-blind)
#006BF0
Tritanopia (blue-blind)
#0084A0
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #5a5ff3; /* rgb */ color: rgb(90, 95, 243); /* oklch */ color: oklch(56.9% 0.217 275.6);
Tailwind
colors: {
custom: {
50: '#988cf8',
500: '#5a5ff3',
950: '#000000',
},
}SCSS
$custom: #5a5ff3; $custom-light: #988cf8; $custom-dark: #000000;
JSON
{
"hex": "#5a5ff3",
"rgb": {
"r": 90,
"g": 95,
"b": 243
},
"hsl": {
"h": 238.039,
"s": 86.441,
"l": 65.294
},
"oklch": {
"l": 0.56914,
"c": 0.21701,
"h": 275.6
},
"luminance": 0.16829
}Semantic roles & 50–950 ramp
primary
#5A5FF3
secondary
#EEECBB
accent
#DC03E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85