#5159BF#5159BF
#5159BF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.3% C 0.158 H 276.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #5159BF |
|---|---|
| RGB | rgb(81, 89, 191) |
| HSL | hsl(236, 46%, 53%) |
| HSV | hsv(236, 58%, 75%) |
| CMYK | cmyk(57.6%, 53.4%, 0%, 25.1%) |
| CIE-LAB | lab(42.24, 27.14, -54.77) |
| CIE-LCH | lch(42.24, 61.13, 296.36°) |
| OKLab | oklab(51.27% 0.0164 -0.1568) |
| OKLCH | oklch(51.27% 0.158 276) |
| XYZ | xyz(16.3667, 12.6545, 50.8602) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.32
Warm Blue
#4B57DB
ΔE00 3.86
Dark Periwinkle
#665FD1
ΔE00 4.69
Slate Blue
#6A5ACD
ΔE00 4.97
Light Indigo
#6D5ACF
ΔE00 5.59
Azul
#1D5DEC
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159BF #BFB751
analogous
#5190BF #5159BF #8051BF
triadic
#5159BF #BF5159 #59BF51
tetradic
#5159BF #BF5190 #BFB751 #51BF80
square
#5159BF #BF5190 #BFB751 #51BF80
split-complementary
#5159BF #BF8051 #90BF51
monochromatic
#282D6D #39409A #5159BF #7E84CF #AAAEE0
Accessibility & contrast
On white
5.95
#5159BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#5159BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159BF
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159BF | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B68C3
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#087083
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #5159bf; /* rgb */ color: rgb(81, 89, 191); /* oklch */ color: oklch(51.3% 0.158 276.0);
Tailwind
colors: {
custom: {
50: '#8b87d3',
500: '#5159bf',
950: '#000000',
},
}SCSS
$custom: #5159bf; $custom-light: #8b87d3; $custom-dark: #000000;
JSON
{
"hex": "#5159bf",
"rgb": {
"r": 81,
"g": 89,
"b": 191
},
"hsl": {
"h": 235.636,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.51267,
"c": 0.15768,
"h": 276
},
"luminance": 0.12656
}Semantic roles & 50–950 ramp
primary
#5159BF
secondary
#CECA9E
accent
#CC52D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83