#5A5FCD#5A5FCD
#5A5FCD is a mid, vivid blue. Relative luminance 0.148; OKLCH L 54.0% C 0.167 H 277.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #5A5FCD |
|---|---|
| RGB | rgb(90, 95, 205) |
| HSL | hsl(237, 53%, 58%) |
| HSV | hsv(237, 56%, 80%) |
| CMYK | cmyk(56.1%, 53.7%, 0%, 19.6%) |
| CIE-LAB | lab(45.31, 29.74, -57.88) |
| CIE-LCH | lch(45.31, 65.07, 297.20°) |
| OKLab | oklab(54.03% 0.0212 -0.1657) |
| OKLCH | oklch(54.03% 0.167 277.3) |
| XYZ | xyz(19.3246, 14.7645, 59.5773) |
| Luminance | 0.1477 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.26
Iris
#6258C4
ΔE00 3.23
Warm Blue
#4B57DB
ΔE00 3.38
Slate Blue
#6A5ACD
ΔE00 3.60
Light Indigo
#6D5ACF
ΔE00 4.09
Royal Blue
#4169E1
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A5FCD #CDC85A
analogous
#5A99CD #5A5FCD #8E5ACD
triadic
#5A5FCD #CD5A5F #5FCD5A
tetradic
#5A5FCD #CD5A99 #CDC85A #5ACD8E
square
#5A5FCD #CD5A99 #CDC85A #5ACD8E
split-complementary
#5A5FCD #CD8E5A #99CD5A
monochromatic
#282C84 #363CB3 #5A5FCD #898DDB #B8BAE9
Accessibility & contrast
On white
5.31
#5A5FCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#5A5FCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A5FCD
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A5FCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A5FCD | 1.00 | 5.31 | 3.95 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B70D1
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#1A788D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5a5fcd; /* rgb */ color: rgb(90, 95, 205); /* oklch */ color: oklch(54.0% 0.167 277.3);
Tailwind
colors: {
custom: {
50: '#928cdd',
500: '#5a5fcd',
950: '#000000',
},
}SCSS
$custom: #5a5fcd; $custom-light: #928cdd; $custom-dark: #000000;
JSON
{
"hex": "#5a5fcd",
"rgb": {
"r": 90,
"g": 95,
"b": 205
},
"hsl": {
"h": 237.391,
"s": 53.488,
"l": 57.843
},
"oklch": {
"l": 0.54027,
"c": 0.16702,
"h": 277.3
},
"luminance": 0.14766
}Semantic roles & 50–950 ramp
primary
#5A5FCD
secondary
#D8D6AA
accent
#D74BDD
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83