#5156E2#5156E2
#5156E2 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.4% C 0.208 H 275.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #5156E2 |
|---|---|
| RGB | rgb(81, 86, 226) |
| HSL | hsl(238, 71%, 60%) |
| HSV | hsv(238, 64%, 89%) |
| CMYK | cmyk(64.2%, 61.9%, 0%, 11.4%) |
| CIE-LAB | lab(44.08, 40.61, -71.89) |
| CIE-LCH | lch(44.08, 82.57, 299.46°) |
| OKLab | oklab(53.44% 0.019 -0.2072) |
| OKLCH | oklch(53.44% 0.208 275.2) |
| XYZ | xyz(20.4441, 13.8941, 73.5412) |
| Luminance | 0.1390 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.40
Dark Periwinkle
#665FD1
ΔE00 4.30
Electric Blue
#0652FF
ΔE00 4.58
Slate Blue
#6A5ACD
ΔE00 4.68
Iris
#6258C4
ΔE00 4.70
Light Indigo
#6D5ACF
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156E2 #E2DD51
analogous
#519EE2 #5156E2 #9451E2
triadic
#5156E2 #E25156 #56E251
tetradic
#5156E2 #E2519E #E2DD51 #51E294
square
#5156E2 #E2519E #E2DD51 #51E294
split-complementary
#5156E2 #E29451 #9EE251
monochromatic
#1A1F9E #2329D3 #5156E2 #8589EB #BABCF3
Accessibility & contrast
On white
5.56
#5156E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#5156E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156E2
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156E2 | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#0062DF
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #5156e2; /* rgb */ color: rgb(81, 86, 226); /* oklch */ color: oklch(53.4% 0.208 275.2);
Tailwind
colors: {
custom: {
50: '#9186ec',
500: '#5156e2',
950: '#000000',
},
}SCSS
$custom: #5156e2; $custom-light: #9186ec; $custom-dark: #000000;
JSON
{
"hex": "#5156e2",
"rgb": {
"r": 81,
"g": 86,
"b": 226
},
"hsl": {
"h": 237.931,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.53443,
"c": 0.20806,
"h": 275.2
},
"luminance": 0.13896
}Semantic roles & 50–950 ramp
primary
#5156E2
secondary
#E3E1AC
accent
#CD12D3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84