#5156BA#5156BA
#5156BA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.155 H 277.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5156BA |
|---|---|
| RGB | rgb(81, 86, 186) |
| HSL | hsl(237, 43%, 52%) |
| HSV | hsv(237, 56%, 73%) |
| CMYK | cmyk(56.5%, 53.8%, 0%, 27.1%) |
| CIE-LAB | lab(41.13, 27.38, -53.63) |
| CIE-LCH | lch(41.13, 60.22, 297.04°) |
| OKLab | oklab(50.33% 0.0192 -0.1535) |
| OKLCH | oklch(50.33% 0.155 277.1) |
| XYZ | xyz(15.5812, 11.9490, 47.9302) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.39
Warm Blue
#4B57DB
ΔE00 4.56
Slate Blue
#6A5ACD
ΔE00 5.28
Dark Periwinkle
#665FD1
ΔE00 5.41
Light Indigo
#6D5ACF
ΔE00 5.89
Ocean Blue
#4F42B5
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156BA #BAB551
analogous
#518ABA #5156BA #8151BA
triadic
#5156BA #BA5156 #56BA51
tetradic
#5156BA #BA518A #BAB551 #51BA81
square
#5156BA #BA518A #BAB551 #51BA81
split-complementary
#5156BA #BA8151 #8ABA51
monochromatic
#292C68 #3A3F93 #5156BA #7D81CB #A9ABDD
Accessibility & contrast
On white
6.19
#5156BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#5156BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156BA
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156BA | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1965BD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#176D7F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5156ba; /* rgb */ color: rgb(81, 86, 186); /* oklch */ color: oklch(50.3% 0.155 277.1);
Tailwind
colors: {
custom: {
50: '#8b85cf',
500: '#5156ba',
950: '#000000',
},
}SCSS
$custom: #5156ba; $custom-light: #8b85cf; $custom-dark: #000000;
JSON
{
"hex": "#5156ba",
"rgb": {
"r": 81,
"g": 86,
"b": 186
},
"hsl": {
"h": 237.143,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.50333,
"c": 0.15471,
"h": 277.1
},
"luminance": 0.1195
}Semantic roles & 50–950 ramp
primary
#5156BA
secondary
#CAC89D
accent
#CD55D3
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82