#5159CD#5159CD
#5159CD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.3% C 0.177 H 275.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5159CD |
|---|---|
| RGB | rgb(81, 89, 205) |
| HSL | hsl(236, 55%, 56%) |
| HSV | hsv(236, 60%, 80%) |
| CMYK | cmyk(60.5%, 56.6%, 0%, 19.6%) |
| CIE-LAB | lab(43.21, 31.81, -61.30) |
| CIE-LCH | lch(43.21, 69.06, 297.42°) |
| OKLab | oklab(52.31% 0.0169 -0.176) |
| OKLCH | oklch(52.31% 0.177 275.5) |
| XYZ | xyz(17.9816, 13.3005, 59.3654) |
| Luminance | 0.1330 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.95
Iris
#6258C4
ΔE00 3.27
Dark Periwinkle
#665FD1
ΔE00 3.79
Slate Blue
#6A5ACD
ΔE00 4.30
Light Indigo
#6D5ACF
ΔE00 4.85
Azul
#1D5DEC
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159CD #CDC551
analogous
#5197CD #5159CD #8751CD
triadic
#5159CD #CD5159 #59CD51
tetradic
#5159CD #CD5197 #CDC551 #51CD87
square
#5159CD #CD5197 #CDC551 #51CD87
split-complementary
#5159CD #CD8751 #97CD51
monochromatic
#252A7F #323AAF #5159CD #8186DB #B0B4E8
Accessibility & contrast
On white
5.74
#5159CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#5159CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159CD
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159CD | 1.00 | 5.74 | 3.66 | 5.74 |
| #FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5159cd; /* rgb */ color: rgb(81, 89, 205); /* oklch */ color: oklch(52.3% 0.177 275.5);
Tailwind
colors: {
custom: {
50: '#8e88dd',
500: '#5159cd',
950: '#000000',
},
}SCSS
$custom: #5159cd; $custom-light: #8e88dd; $custom-dark: #000000;
JSON
{
"hex": "#5159cd",
"rgb": {
"r": 81,
"g": 89,
"b": 205
},
"hsl": {
"h": 236.129,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.52305,
"c": 0.17684,
"h": 275.5
},
"luminance": 0.13302
}Semantic roles & 50–950 ramp
primary
#5159CD
secondary
#D7D3A3
accent
#D549DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83