#5B5CD9#5B5CD9
#5B5CD9 is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.4% C 0.187 H 277.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5CD9 |
|---|---|
| RGB | rgb(91, 92, 217) |
| HSL | hsl(240, 62%, 60%) |
| HSV | hsv(240, 58%, 85%) |
| CMYK | cmyk(58.1%, 57.6%, 0%, 14.9%) |
| CIE-LAB | lab(45.48, 35.65, -64.47) |
| CIE-LCH | lch(45.48, 73.67, 298.94°) |
| OKLab | oklab(54.44% 0.0256 -0.1851) |
| OKLCH | oklch(54.44% 0.187 277.9) |
| XYZ | xyz(20.6619, 14.8867, 67.4168) |
| Luminance | 0.1489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.19
Warm Blue
#4B57DB
ΔE00 2.49
Slate Blue
#6A5ACD
ΔE00 3.24
Iris
#6258C4
ΔE00 3.54
Light Indigo
#6D5ACF
ΔE00 3.57
Azul
#1D5DEC
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5CD9 #D9D85B
analogous
#5B9BD9 #5B5CD9 #995BD9
triadic
#5B5CD9 #D95B5C #5CD95B
tetradic
#5B5CD9 #D95B9B #D9D85B #5BD999
square
#5B5CD9 #D95B9B #D9D85B #5BD999
split-complementary
#5B5CD9 #D9995B #9BD95B
monochromatic
#232497 #2E30C8 #5B5CD9 #8D8DE5 #BEBFF0
Accessibility & contrast
On white
5.28
#5B5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#5B5CD9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5CD9
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5CD9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5CD9 | 1.00 | 5.28 | 3.98 | 5.28 |
| #FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#007A92
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #5b5cd9; /* rgb */ color: rgb(91, 92, 217); /* oklch */ color: oklch(54.4% 0.187 277.9);
Tailwind
colors: {
custom: {
50: '#948ae6',
500: '#5b5cd9',
950: '#000000',
},
}SCSS
$custom: #5b5cd9; $custom-light: #948ae6; $custom-dark: #000000;
JSON
{
"hex": "#5b5cd9",
"rgb": {
"r": 91,
"g": 92,
"b": 217
},
"hsl": {
"h": 239.524,
"s": 62.376,
"l": 60.392
},
"oklch": {
"l": 0.54435,
"c": 0.18683,
"h": 277.9
},
"luminance": 0.14888
}Semantic roles & 50–950 ramp
primary
#5B5CD9
secondary
#E0E0B0
accent
#C91BCA
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0B16
muted
#7E7C84