#5156CD#5156CD
#5156CD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.8% C 0.181 H 276.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #5156CD |
|---|---|
| RGB | rgb(81, 86, 205) |
| HSL | hsl(238, 55%, 56%) |
| HSV | hsv(238, 60%, 80%) |
| CMYK | cmyk(60.5%, 58%, 0%, 19.6%) |
| CIE-LAB | lab(42.48, 33.67, -62.49) |
| CIE-LCH | lch(42.48, 70.98, 298.31°) |
| OKLab | oklab(51.76% 0.0197 -0.1796) |
| OKLCH | oklch(51.76% 0.181 276.2) |
| XYZ | xyz(17.7370, 12.8113, 59.2839) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.96
Iris
#6258C4
ΔE00 3.11
Dark Periwinkle
#665FD1
ΔE00 4.17
Slate Blue
#6A5ACD
ΔE00 4.26
Light Indigo
#6D5ACF
ΔE00 4.79
Azul
#1D5DEC
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5156CD #CDC851
analogous
#5194CD #5156CD #8A51CD
triadic
#5156CD #CD5156 #56CD51
tetradic
#5156CD #CD5194 #CDC851 #51CD8A
square
#5156CD #CD5194 #CDC851 #51CD8A
split-complementary
#5156CD #CD8A51 #94CD51
monochromatic
#25287F #3237AF #5156CD #8184DB #B0B2E8
Accessibility & contrast
On white
5.89
#5156CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#5156CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5156CD
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5156CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5156CD | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5156cd; /* rgb */ color: rgb(81, 86, 205); /* oklch */ color: oklch(51.8% 0.181 276.2);
Tailwind
colors: {
custom: {
50: '#8e85dd',
500: '#5156cd',
950: '#000000',
},
}SCSS
$custom: #5156cd; $custom-light: #8e85dd; $custom-dark: #000000;
JSON
{
"hex": "#5156cd",
"rgb": {
"r": 81,
"g": 86,
"b": 205
},
"hsl": {
"h": 237.581,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.51759,
"c": 0.18064,
"h": 276.2
},
"luminance": 0.12813
}Semantic roles & 50–950 ramp
primary
#5156CD
secondary
#D7D4A3
accent
#D949DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83