#5B5FE3#5B5FE3
#5B5FE3 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.7% C 0.196 H 276.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #5B5FE3 |
|---|---|
| RGB | rgb(91, 95, 227) |
| HSL | hsl(238, 71%, 62%) |
| HSV | hsv(238, 60%, 89%) |
| CMYK | cmyk(59.9%, 58.1%, 0%, 11%) |
| CIE-LAB | lab(46.91, 37.06, -67.82) |
| CIE-LCH | lch(46.91, 77.28, 298.65°) |
| OKLab | oklab(55.72% 0.0227 -0.1949) |
| OKLCH | oklch(55.72% 0.196 276.6) |
| XYZ | xyz(22.2672, 15.9529, 74.5640) |
| Luminance | 0.1595 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 2.96
Warm Blue
#4B57DB
ΔE00 3.40
Slate Blue
#6A5ACD
ΔE00 4.37
Light Indigo
#6D5ACF
ΔE00 4.53
Iris
#6258C4
ΔE00 5.10
Royal Blue
#4169E1
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B5FE3 #E3DF5B
analogous
#5BA3E3 #5B5FE3 #9B5BE3
triadic
#5B5FE3 #E35B5F #5FE35B
tetradic
#5B5FE3 #E35BA3 #E3DF5B #5BE39B
square
#5B5FE3 #E35BA3 #E3DF5B #5BE39B
split-complementary
#5B5FE3 #E39B5B #A3E35B
monochromatic
#1D21A7 #272CDA #5B5FE3 #8F92EC #C4C5F5
Accessibility & contrast
On white
5.01
#5B5FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#5B5FE3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B5FE3
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B5FE3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B5FE3 | 1.00 | 5.01 | 4.19 | 5.01 |
| #FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#0069E0
Tritanopia (blue-blind)
#007F98
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #5b5fe3; /* rgb */ color: rgb(91, 95, 227); /* oklch */ color: oklch(55.7% 0.196 276.6);
Tailwind
colors: {
custom: {
50: '#968ced',
500: '#5b5fe3',
950: '#000000',
},
}SCSS
$custom: #5b5fe3; $custom-light: #968ced; $custom-dark: #000000;
JSON
{
"hex": "#5b5fe3",
"rgb": {
"r": 91,
"g": 95,
"b": 227
},
"hsl": {
"h": 238.235,
"s": 70.833,
"l": 62.353
},
"oklch": {
"l": 0.55724,
"c": 0.19622,
"h": 276.6
},
"luminance": 0.15955
}Semantic roles & 50–950 ramp
primary
#5B5FE3
secondary
#E6E4B4
accent
#CD13D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84