#5B5FEB#5B5FEB
#5B5FEB is a mid, highly saturated blue. Relative luminance 0.164; OKLCH L 56.3% C 0.207 H 276.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5FEB |
|---|---|
| RGB | rgb(91, 95, 235) |
| HSL | hsl(238, 78%, 64%) |
| HSV | hsv(238, 61%, 92%) |
| CMYK | cmyk(61.3%, 59.6%, 0%, 7.8%) |
| CIE-LAB | lab(47.50, 39.65, -71.37) |
| CIE-LCH | lch(47.50, 81.65, 299.05°) |
| OKLab | oklab(56.34% 0.0225 -0.2053) |
| OKLCH | oklch(56.34% 0.207 276.3) |
| XYZ | xyz(23.3971, 16.4049, 80.5146) |
| Luminance | 0.1641 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.78
Warm Blue
#4B57DB
ΔE00 4.02
Slate Blue
#6A5ACD
ΔE00 5.08
Light Indigo
#6D5ACF
ΔE00 5.13
Mediumslateblue
#7B68EE
ΔE00 5.66
Royal Blue
#4169E1
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5FEB #EBE75B
analogous
#5BA7EB #5B5FEB #9F5BEB
triadic
#5B5FEB #EB5B5F #5FEB5B
tetradic
#5B5FEB #EB5BA7 #EBE75B #5BEB9F
square
#5B5FEB #EB5BA7 #EBE75B #5BEB9F
split-complementary
#5B5FEB #EB9F5B #A7EB5B
monochromatic
#161BB5 #242AE4 #5B5FEB #9294F2 #C8C9F8
Accessibility & contrast
On white
4.90
#5B5FEB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#5B5FEB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5FEB
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5FEB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5FEB | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #5b5feb; /* rgb */ color: rgb(91, 95, 235); /* oklch */ color: oklch(56.3% 0.207 276.3);
Tailwind
colors: {
custom: {
50: '#978cf2',
500: '#5b5feb',
950: '#000000',
},
}SCSS
$custom: #5b5feb; $custom-light: #978cf2; $custom-dark: #000000;
JSON
{
"hex": "#5b5feb",
"rgb": {
"r": 91,
"g": 95,
"b": 235
},
"hsl": {
"h": 238.333,
"s": 78.261,
"l": 63.922
},
"oklch": {
"l": 0.56344,
"c": 0.20658,
"h": 276.3
},
"luminance": 0.16407
}Semantic roles & 50–950 ramp
primary
#5B5FEB
secondary
#EAE9B8
accent
#D50BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85