#5B56F2#5B56F2
#5B56F2 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.226 H 277.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #5B56F2 |
|---|---|
| RGB | rgb(91, 86, 242) |
| HSL | hsl(242, 86%, 64%) |
| HSV | hsv(242, 64%, 95%) |
| CMYK | cmyk(62.4%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(46.03, 47.19, -77.71) |
| CIE-LCH | lch(46.03, 90.92, 301.27°) |
| OKLab | oklab(55.43% 0.0294 -0.224) |
| OKLCH | oklch(55.43% 0.226 277.5) |
| XYZ | xyz(23.6640, 15.2886, 85.6912) |
| Luminance | 0.1529 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 4.01
Dark Periwinkle
#665FD1
ΔE00 4.92
Electric Blue
#0652FF
ΔE00 5.22
Light Indigo
#6D5ACF
ΔE00 5.22
Slate Blue
#6A5ACD
ΔE00 5.26
Purpleish Blue
#6140EF
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5B56F2 #EDF256
analogous
#569FF2 #5B56F2 #A956F2
triadic
#5B56F2 #F25B56 #56F25B
tetradic
#5B56F2 #F2569F #EDF256 #56F2A9
square
#5B56F2 #F2569F #EDF256 #56F2A9
split-complementary
#5B56F2 #F2A956 #9FF256
monochromatic
#140FBF #241DEE #5B56F2 #928FF6 #C9C8FB
Accessibility & contrast
On white
5.17
#5B56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#5B56F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5B56F2
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5B56F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5B56F2 | 1.00 | 5.17 | 4.06 | 5.17 |
| #FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#0066EF
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #5b56f2; /* rgb */ color: rgb(91, 86, 242); /* oklch */ color: oklch(55.4% 0.226 277.5);
Tailwind
colors: {
custom: {
50: '#9986f7',
500: '#5b56f2',
950: '#000000',
},
}SCSS
$custom: #5b56f2; $custom-light: #9986f7; $custom-dark: #000000;
JSON
{
"hex": "#5b56f2",
"rgb": {
"r": 91,
"g": 86,
"b": 242
},
"hsl": {
"h": 241.923,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.55434,
"c": 0.22592,
"h": 277.5
},
"luminance": 0.15291
}Semantic roles & 50–950 ramp
primary
#5B56F2
secondary
#EBEDB7
accent
#E203DB
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85