#5A5FDF#5A5FDF
#5A5FDF is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.4% C 0.191 H 276.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FDF |
|---|---|
| RGB | rgb(90, 95, 223) |
| HSL | hsl(238, 68%, 61%) |
| HSV | hsv(238, 60%, 87%) |
| CMYK | cmyk(59.6%, 57.4%, 0%, 12.5%) |
| CIE-LAB | lab(46.56, 35.59, -66.13) |
| CIE-LCH | lch(46.56, 75.10, 298.29°) |
| OKLab | oklab(55.35% 0.0216 -0.19) |
| OKLCH | oklch(55.35% 0.191 276.5) |
| XYZ | xyz(21.6236, 15.6841, 71.6856) |
| Luminance | 0.1569 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.69
Warm Blue
#4B57DB
ΔE00 3.10
Slate Blue
#6A5ACD
ΔE00 4.17
Light Indigo
#6D5ACF
ΔE00 4.40
Iris
#6258C4
ΔE00 4.72
Royal Blue
#4169E1
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FDF #DFDA5A
analogous
#5AA2DF #5A5FDF #985ADF
triadic
#5A5FDF #DF5A5F #5FDF5A
tetradic
#5A5FDF #DF5AA2 #DFDA5A #5ADF98
square
#5A5FDF #DF5AA2 #DFDA5A #5ADF98
split-complementary
#5A5FDF #DF985A #A2DF5A
monochromatic
#1F24A0 #292FD3 #5A5FDF #8D91E9 #C1C2F3
Accessibility & contrast
On white
5.08
#5A5FDF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#5A5FDF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FDF
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FDF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FDF | 1.00 | 5.08 | 4.14 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0069DC
Tritanopia (blue-blind)
#007E96
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5a5fdf; /* rgb */ color: rgb(90, 95, 223); /* oklch */ color: oklch(55.4% 0.191 276.5);
Tailwind
colors: {
custom: {
50: '#958cea',
500: '#5a5fdf',
950: '#000000',
},
}SCSS
$custom: #5a5fdf; $custom-light: #958cea; $custom-dark: #000000;
JSON
{
"hex": "#5a5fdf",
"rgb": {
"r": 90,
"g": 95,
"b": 223
},
"hsl": {
"h": 237.744,
"s": 67.513,
"l": 61.373
},
"oklch": {
"l": 0.55352,
"c": 0.19119,
"h": 276.5
},
"luminance": 0.15686
}Semantic roles & 50–950 ramp
primary
#5A5FDF
secondary
#E3E1B2
accent
#C816CF
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84