#5A5EDC#5A5EDC
#5A5EDC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.9% C 0.188 H 276.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5EDC |
|---|---|
| RGB | rgb(90, 94, 220) |
| HSL | hsl(238, 65%, 61%) |
| HSV | hsv(238, 59%, 86%) |
| CMYK | cmyk(59.1%, 57.3%, 0%, 13.7%) |
| CIE-LAB | lab(46.10, 35.22, -65.16) |
| CIE-LCH | lch(46.10, 74.08, 298.39°) |
| OKLab | oklab(54.95% 0.0225 -0.1871) |
| OKLCH | oklch(54.95% 0.188 276.9) |
| XYZ | xyz(21.1333, 15.3448, 69.5445) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.43
Warm Blue
#4B57DB
ΔE00 2.78
Slate Blue
#6A5ACD
ΔE00 3.81
Light Indigo
#6D5ACF
ΔE00 4.09
Iris
#6258C4
ΔE00 4.23
Royal Blue
#4169E1
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5EDC #DCD85A
analogous
#5A9FDC #5A5EDC #975ADC
triadic
#5A5EDC #DC5A5E #5EDC5A
tetradic
#5A5EDC #DC5A9F #DCD85A #5ADC97
square
#5A5EDC #DC5A9F #DCD85A #5ADC97
split-complementary
#5A5EDC #DC975A #9FDC5A
monochromatic
#21259B #2C31CD #5A5EDC #8C8FE7 #BFC1F1
Accessibility & contrast
On white
5.16
#5A5EDC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#5A5EDC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5EDC
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5EDC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5EDC | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5a5edc; /* rgb */ color: rgb(90, 94, 220); /* oklch */ color: oklch(54.9% 0.188 276.9);
Tailwind
colors: {
custom: {
50: '#948be8',
500: '#5a5edc',
950: '#000000',
},
}SCSS
$custom: #5a5edc; $custom-light: #948be8; $custom-dark: #000000;
JSON
{
"hex": "#5a5edc",
"rgb": {
"r": 90,
"g": 94,
"b": 220
},
"hsl": {
"h": 238.154,
"s": 65,
"l": 60.784
},
"oklch": {
"l": 0.54947,
"c": 0.18848,
"h": 276.9
},
"luminance": 0.15346
}Semantic roles & 50–950 ramp
primary
#5A5EDC
secondary
#E2E0B0
accent
#C719CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84