#5B5FE5#5B5FE5
#5B5FE5 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.9% C 0.199 H 276.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5FE5 |
|---|---|
| RGB | rgb(91, 95, 229) |
| HSL | hsl(238, 73%, 63%) |
| HSV | hsv(238, 60%, 90%) |
| CMYK | cmyk(60.3%, 58.5%, 0%, 10.2%) |
| CIE-LAB | lab(47.06, 37.71, -68.71) |
| CIE-LCH | lch(47.06, 78.38, 298.76°) |
| OKLab | oklab(55.88% 0.0227 -0.1975) |
| OKLCH | oklch(55.88% 0.199 276.5) |
| XYZ | xyz(22.5449, 16.0640, 76.0262) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.16
Warm Blue
#4B57DB
ΔE00 3.53
Slate Blue
#6A5ACD
ΔE00 4.54
Light Indigo
#6D5ACF
ΔE00 4.67
Iris
#6258C4
ΔE00 5.32
Royal Blue
#4169E1
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5FE5 #E5E15B
analogous
#5BA4E5 #5B5FE5 #9C5BE5
triadic
#5B5FE5 #E55B5F #5FE55B
tetradic
#5B5FE5 #E55BA4 #E5E15B #5BE59C
square
#5B5FE5 #E55BA4 #E5E15B #5BE59C
split-complementary
#5B5FE5 #E59C5B #A4E55B
monochromatic
#1B1FAB #262BDD #5B5FE5 #9093ED #C5C6F6
Accessibility & contrast
On white
4.98
#5B5FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#5B5FE5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5FE5
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5FE5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5FE5 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006AE2
Tritanopia (blue-blind)
#007F99
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #5b5fe5; /* rgb */ color: rgb(91, 95, 229); /* oklch */ color: oklch(55.9% 0.199 276.5);
Tailwind
colors: {
custom: {
50: '#968cee',
500: '#5b5fe5',
950: '#000000',
},
}SCSS
$custom: #5b5fe5; $custom-light: #968cee; $custom-dark: #000000;
JSON
{
"hex": "#5b5fe5",
"rgb": {
"r": 91,
"g": 95,
"b": 229
},
"hsl": {
"h": 238.261,
"s": 72.632,
"l": 62.745
},
"oklch": {
"l": 0.55877,
"c": 0.19883,
"h": 276.5
},
"luminance": 0.16066
}Semantic roles & 50–950 ramp
primary
#5B5FE5
secondary
#E7E5B5
accent
#CF11D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84