#5159CF#5159CF
#5159CF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.5% C 0.180 H 275.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #5159CF |
|---|---|
| RGB | rgb(81, 89, 207) |
| HSL | hsl(236, 57%, 56%) |
| HSV | hsv(236, 61%, 81%) |
| CMYK | cmyk(60.9%, 57%, 0%, 18.8%) |
| CIE-LAB | lab(43.36, 32.47, -62.22) |
| CIE-LCH | lch(43.36, 70.18, 297.56°) |
| OKLab | oklab(52.46% 0.0169 -0.1787) |
| OKLCH | oklch(52.46% 0.18 275.4) |
| XYZ | xyz(18.2245, 13.3976, 60.6450) |
| Luminance | 0.1340 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.71
Iris
#6258C4
ΔE00 3.35
Dark Periwinkle
#665FD1
ΔE00 3.72
Slate Blue
#6A5ACD
ΔE00 4.27
Light Indigo
#6D5ACF
ΔE00 4.80
Azul
#1D5DEC
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159CF #CFC751
analogous
#5198CF #5159CF #8851CF
triadic
#5159CF #CF5159 #59CF51
tetradic
#5159CF #CF5198 #CFC751 #51CF88
square
#5159CF #CF5198 #CFC751 #51CF88
split-complementary
#5159CF #CF8851 #98CF51
monochromatic
#242A82 #3139B2 #5159CF #8187DC #B1B5E9
Accessibility & contrast
On white
5.71
#5159CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#5159CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159CF
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159CF | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0061CD
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #5159cf; /* rgb */ color: rgb(81, 89, 207); /* oklch */ color: oklch(52.5% 0.180 275.4);
Tailwind
colors: {
custom: {
50: '#8e88de',
500: '#5159cf',
950: '#000000',
},
}SCSS
$custom: #5159cf; $custom-light: #8e88de; $custom-dark: #000000;
JSON
{
"hex": "#5159cf",
"rgb": {
"r": 81,
"g": 89,
"b": 207
},
"hsl": {
"h": 236.19,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.52457,
"c": 0.17954,
"h": 275.4
},
"luminance": 0.13399
}Semantic roles & 50–950 ramp
primary
#5159CF
secondary
#D8D4A4
accent
#D648E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83