#5F5DCD#5F5DCD
#5F5DCD is a mid, vivid blue. Relative luminance 0.147; OKLCH L 54.0% C 0.169 H 279.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #5F5DCD |
|---|---|
| RGB | rgb(95, 93, 205) |
| HSL | hsl(241, 53%, 58%) |
| HSV | hsv(241, 55%, 80%) |
| CMYK | cmyk(53.7%, 54.6%, 0%, 19.6%) |
| CIE-LAB | lab(45.18, 31.96, -58.07) |
| CIE-LCH | lch(45.18, 66.29, 298.82°) |
| OKLab | oklab(54.02% 0.0291 -0.1661) |
| OKLCH | oklch(54.02% 0.169 279.9) |
| XYZ | xyz(19.6497, 14.6682, 59.5416) |
| Luminance | 0.1467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 1.44
Iris
#6258C4
ΔE00 2.24
Slate Blue
#6A5ACD
ΔE00 2.39
Light Indigo
#6D5ACF
ΔE00 2.90
Warm Blue
#4B57DB
ΔE00 3.56
Royal Blue
#4169E1
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F5DCD #CBCD5D
analogous
#5D93CD #5F5DCD #975DCD
triadic
#5F5DCD #CD5F5D #5DCD5F
tetradic
#5F5DCD #CD5D93 #CBCD5D #5DCD97
square
#5F5DCD #CD5D93 #CBCD5D #5DCD97
split-complementary
#5F5DCD #CD975D #93CD5D
monochromatic
#2B2986 #3A38B5 #5F5DCD #8D8CDB #BBBBEA
Accessibility & contrast
On white
5.34
#5F5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#5F5DCD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F5DCD
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F5DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F5DCD | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#156FD1
Deuteranopia (green-blind)
#0067CB
Tritanopia (blue-blind)
#2D778C
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #5f5dcd; /* rgb */ color: rgb(95, 93, 205); /* oklch */ color: oklch(54.0% 0.169 279.9);
Tailwind
colors: {
custom: {
50: '#958bdd',
500: '#5f5dcd',
950: '#000000',
},
}SCSS
$custom: #5f5dcd; $custom-light: #958bdd; $custom-dark: #000000;
JSON
{
"hex": "#5f5dcd",
"rgb": {
"r": 95,
"g": 93,
"b": 205
},
"hsl": {
"h": 241.071,
"s": 52.83,
"l": 58.431
},
"oklch": {
"l": 0.54019,
"c": 0.16868,
"h": 279.9
},
"luminance": 0.14669
}Semantic roles & 50–950 ramp
primary
#5F5DCD
secondary
#D8D9AD
accent
#DC4CDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83