#5159C6#5159C6
#5159C6 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.167 H 275.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #5159C6 |
|---|---|
| RGB | rgb(81, 89, 198) |
| HSL | hsl(236, 51%, 55%) |
| HSV | hsv(236, 59%, 78%) |
| CMYK | cmyk(59.1%, 55.1%, 0%, 22.4%) |
| CIE-LAB | lab(42.72, 29.47, -58.06) |
| CIE-LCH | lch(42.72, 65.11, 296.92°) |
| OKLab | oklab(51.78% 0.0167 -0.1665) |
| OKLCH | oklch(51.78% 0.167 275.7) |
| XYZ | xyz(17.1555, 12.9700, 55.0146) |
| Luminance | 0.1297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.87
Iris
#6258C4
ΔE00 3.14
Dark Periwinkle
#665FD1
ΔE00 4.15
Slate Blue
#6A5ACD
ΔE00 4.54
Light Indigo
#6D5ACF
ΔE00 5.14
Azul
#1D5DEC
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159C6 #C6BE51
analogous
#5194C6 #5159C6 #8351C6
triadic
#5159C6 #C65159 #59C651
tetradic
#5159C6 #C65194 #C6BE51 #51C683
square
#5159C6 #C65194 #C6BE51 #51C683
split-complementary
#5159C6 #C68351 #94C651
monochromatic
#272C76 #363DA4 #5159C6 #7F85D5 #ADB1E4
Accessibility & contrast
On white
5.84
#5159C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#5159C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159C6
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159C6 | 1.00 | 5.84 | 3.59 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#076ACA
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #5159c6; /* rgb */ color: rgb(81, 89, 198); /* oklch */ color: oklch(51.8% 0.167 275.7);
Tailwind
colors: {
custom: {
50: '#8c87d8',
500: '#5159c6',
950: '#000000',
},
}SCSS
$custom: #5159c6; $custom-light: #8c87d8; $custom-dark: #000000;
JSON
{
"hex": "#5159c6",
"rgb": {
"r": 81,
"g": 89,
"b": 198
},
"hsl": {
"h": 235.897,
"s": 50.649,
"l": 54.706
},
"oklch": {
"l": 0.51779,
"c": 0.16734,
"h": 275.7
},
"luminance": 0.12971
}Semantic roles & 50–950 ramp
primary
#5159C6
secondary
#D2CFA1
accent
#D14EDA
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B15
muted
#7E7C83