#5156E8#5156E8
#5156E8 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.9% C 0.216 H 275.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).
Color values
| HEX | #5156E8 |
|---|---|
| RGB | rgb(81, 86, 232) |
| HSL | hsl(238, 77%, 61%) |
| HSV | hsv(238, 65%, 91%) |
| CMYK | cmyk(65.1%, 62.9%, 0%, 9%) |
| CIE-LAB | lab(44.56, 42.58, -74.50) |
| CIE-LCH | lch(44.56, 85.82, 299.75°) |
| OKLab | oklab(53.94% 0.0187 -0.2149) |
| OKLCH | oklch(53.94% 0.216 275) |
| XYZ | xyz(21.2818, 14.2292, 77.9533) |
| Luminance | 0.1423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.05
Electric Blue
#0652FF
ΔE00 4.27
Dark Periwinkle
#665FD1
ΔE00 4.60
Slate Blue
#6A5ACD
ΔE00 5.03
Light Indigo
#6D5ACF
ΔE00 5.23
Azul
#1D5DEC
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156E8 #E8E351
analogous
#51A2E8 #5156E8 #9851E8
triadic
#5156E8 #E85156 #56E851
tetradic
#5156E8 #E851A2 #E8E351 #51E898
square
#5156E8 #E851A2 #E8E351 #51E898
split-complementary
#5156E8 #E89851 #A2E851
monochromatic
#161BA8 #1D24DE #5156E8 #878BEF #BDBFF6
Accessibility & contrast
On white
5.46
#5156E8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#5156E8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156E8
5.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156E8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156E8 | 1.00 | 5.46 | 3.85 | 5.46 |
| #FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0063E5
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #5156e8; /* rgb */ color: rgb(81, 86, 232); /* oklch */ color: oklch(53.9% 0.216 275.0);
Tailwind
colors: {
custom: {
50: '#9386f0',
500: '#5156e8',
950: '#000000',
},
}SCSS
$custom: #5156e8; $custom-light: #9386f0; $custom-dark: #000000;
JSON
{
"hex": "#5156e8",
"rgb": {
"r": 81,
"g": 86,
"b": 232
},
"hsl": {
"h": 238.013,
"s": 76.65,
"l": 61.373
},
"oklch": {
"l": 0.53943,
"c": 0.21567,
"h": 275
},
"luminance": 0.14231
}Semantic roles & 50–950 ramp
primary
#5156E8
secondary
#E7E5AE
accent
#D20DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85