#5A5FDC#5A5FDC
#5A5FDC is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.187 H 276.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FDC |
|---|---|
| RGB | rgb(90, 95, 220) |
| HSL | hsl(238, 65%, 61%) |
| HSV | hsv(238, 59%, 86%) |
| CMYK | cmyk(59.1%, 56.8%, 0%, 13.7%) |
| CIE-LAB | lab(46.34, 34.61, -64.77) |
| CIE-LCH | lch(46.34, 73.44, 298.12°) |
| OKLab | oklab(55.13% 0.0216 -0.186) |
| OKLCH | oklch(55.13% 0.187 276.6) |
| XYZ | xyz(21.2228, 15.5238, 69.5743) |
| Luminance | 0.1552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.47
Warm Blue
#4B57DB
ΔE00 3.00
Slate Blue
#6A5ACD
ΔE00 3.98
Light Indigo
#6D5ACF
ΔE00 4.26
Iris
#6258C4
ΔE00 4.42
Royal Blue
#4169E1
ΔE00 5.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FDC #DCD75A
analogous
#5AA0DC #5A5FDC #965ADC
triadic
#5A5FDC #DC5A5F #5FDC5A
tetradic
#5A5FDC #DC5AA0 #DCD75A #5ADC96
square
#5A5FDC #DC5AA0 #DCD75A #5ADC96
split-complementary
#5A5FDC #DC965A #A0DC5A
monochromatic
#21269B #2C32CD #5A5FDC #8C90E7 #BFC1F1
Accessibility & contrast
On white
5.12
#5A5FDC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#5A5FDC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FDC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FDC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FDC | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#0068D9
Tritanopia (blue-blind)
#007D94
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5a5fdc; /* rgb */ color: rgb(90, 95, 220); /* oklch */ color: oklch(55.1% 0.187 276.6);
Tailwind
colors: {
custom: {
50: '#948ce8',
500: '#5a5fdc',
950: '#000000',
},
}SCSS
$custom: #5a5fdc; $custom-light: #948ce8; $custom-dark: #000000;
JSON
{
"hex": "#5a5fdc",
"rgb": {
"r": 90,
"g": 95,
"b": 220
},
"hsl": {
"h": 237.692,
"s": 65,
"l": 60.784
},
"oklch": {
"l": 0.55126,
"c": 0.18723,
"h": 276.6
},
"luminance": 0.15525
}Semantic roles & 50–950 ramp
primary
#5A5FDC
secondary
#E2E0B0
accent
#C619CD
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84