#5156E3#5156E3
#5156E3 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.5% C 0.209 H 275.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #5156E3 |
|---|---|
| RGB | rgb(81, 86, 227) |
| HSL | hsl(238, 72%, 60%) |
| HSV | hsv(238, 64%, 89%) |
| CMYK | cmyk(64.3%, 62.1%, 0%, 11%) |
| CIE-LAB | lab(44.16, 40.94, -72.33) |
| CIE-LCH | lch(44.16, 83.11, 299.51°) |
| OKLab | oklab(53.53% 0.019 -0.2085) |
| OKLCH | oklch(53.53% 0.209 275.2) |
| XYZ | xyz(20.5817, 13.9492, 74.2660) |
| Luminance | 0.1395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.50
Dark Periwinkle
#665FD1
ΔE00 4.35
Electric Blue
#0652FF
ΔE00 4.52
Slate Blue
#6A5ACD
ΔE00 4.73
Iris
#6258C4
ΔE00 4.80
Light Indigo
#6D5ACF
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156E3 #E3DE51
analogous
#519FE3 #5156E3 #9551E3
triadic
#5156E3 #E35156 #56E351
tetradic
#5156E3 #E3519F #E3DE51 #51E395
square
#5156E3 #E3519F #E3DE51 #51E395
split-complementary
#5156E3 #E39551 #9FE351
monochromatic
#1A1EA0 #2228D5 #5156E3 #8689EB #BABCF4
Accessibility & contrast
On white
5.54
#5156E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#5156E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156E3
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156E3 | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#0062E0
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #5156e3; /* rgb */ color: rgb(81, 86, 227); /* oklch */ color: oklch(53.5% 0.209 275.2);
Tailwind
colors: {
custom: {
50: '#9286ed',
500: '#5156e3',
950: '#000000',
},
}SCSS
$custom: #5156e3; $custom-light: #9286ed; $custom-dark: #000000;
JSON
{
"hex": "#5156e3",
"rgb": {
"r": 81,
"g": 86,
"b": 227
},
"hsl": {
"h": 237.945,
"s": 72.277,
"l": 60.392
},
"oklch": {
"l": 0.53526,
"c": 0.20934,
"h": 275.2
},
"luminance": 0.13951
}Semantic roles & 50–950 ramp
primary
#5156E3
secondary
#E4E2AC
accent
#CE11D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84