#5B5FDB#5B5FDB
#5B5FDB is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.186 H 277.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5FDB |
|---|---|
| RGB | rgb(91, 95, 219) |
| HSL | hsl(238, 64%, 61%) |
| HSV | hsv(238, 58%, 86%) |
| CMYK | cmyk(58.4%, 56.6%, 0%, 14.1%) |
| CIE-LAB | lab(46.34, 34.47, -64.21) |
| CIE-LCH | lch(46.34, 72.87, 298.23°) |
| OKLab | oklab(55.12% 0.0227 -0.1843) |
| OKLCH | oklch(55.12% 0.186 277) |
| XYZ | xyz(21.1887, 15.5215, 68.8835) |
| Luminance | 0.1552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.28
Warm Blue
#4B57DB
ΔE00 3.07
Slate Blue
#6A5ACD
ΔE00 3.81
Light Indigo
#6D5ACF
ΔE00 4.08
Iris
#6258C4
ΔE00 4.26
Royal Blue
#4169E1
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5FDB #DBD75B
analogous
#5B9FDB #5B5FDB #975BDB
triadic
#5B5FDB #DB5B5F #5FDB5B
tetradic
#5B5FDB #DB5B9F #DBD75B #5BDB97
square
#5B5FDB #DB5B9F #DBD75B #5BDB97
split-complementary
#5B5FDB #DB975B #9FDB5B
monochromatic
#22269A #2D32CC #5B5FDB #8D90E6 #BFC1F1
Accessibility & contrast
On white
5.12
#5B5FDB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#5B5FDB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5FDB
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5FDB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5FDB | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#007C94
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #5b5fdb; /* rgb */ color: rgb(91, 95, 219); /* oklch */ color: oklch(55.1% 0.186 277.0);
Tailwind
colors: {
custom: {
50: '#958ce7',
500: '#5b5fdb',
950: '#000000',
},
}SCSS
$custom: #5b5fdb; $custom-light: #958ce7; $custom-dark: #000000;
JSON
{
"hex": "#5b5fdb",
"rgb": {
"r": 91,
"g": 95,
"b": 219
},
"hsl": {
"h": 238.125,
"s": 64,
"l": 60.784
},
"oklch": {
"l": 0.55119,
"c": 0.18568,
"h": 277
},
"luminance": 0.15523
}Semantic roles & 50–950 ramp
primary
#5B5FDB
secondary
#E1E0B1
accent
#C61ACC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84