#5159BD#5159BD
#5159BD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.155 H 276.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #5159BD |
|---|---|
| RGB | rgb(81, 89, 189) |
| HSL | hsl(236, 45%, 53%) |
| HSV | hsv(236, 57%, 74%) |
| CMYK | cmyk(57.1%, 52.9%, 0%, 25.9%) |
| CIE-LAB | lab(42.10, 26.48, -53.82) |
| CIE-LCH | lch(42.10, 59.98, 296.20°) |
| OKLab | oklab(51.12% 0.0162 -0.154) |
| OKLCH | oklch(51.12% 0.155 276) |
| XYZ | xyz(16.1481, 12.5671, 49.7090) |
| Luminance | 0.1257 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.42
Warm Blue
#4B57DB
ΔE00 4.14
Dark Periwinkle
#665FD1
ΔE00 4.87
Slate Blue
#6A5ACD
ΔE00 5.12
Light Indigo
#6D5ACF
ΔE00 5.74
Sapphire
#0F52BA
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5159BD #BDB551
analogous
#518FBD #5159BD #7F51BD
triadic
#5159BD #BD5159 #59BD51
tetradic
#5159BD #BD518F #BDB551 #51BD7F
square
#5159BD #BD518F #BDB551 #51BD7F
split-complementary
#5159BD #BD7F51 #8FBD51
monochromatic
#292E6B #394097 #5159BD #7D83CE #AAAEDF
Accessibility & contrast
On white
5.98
#5159BD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#5159BD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5159BD
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5159BD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5159BD | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F68C1
Deuteranopia (green-blind)
#015FBB
Tritanopia (blue-blind)
#0F7082
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5159bd; /* rgb */ color: rgb(81, 89, 189); /* oklch */ color: oklch(51.1% 0.155 276.0);
Tailwind
colors: {
custom: {
50: '#8b87d1',
500: '#5159bd',
950: '#000000',
},
}SCSS
$custom: #5159bd; $custom-light: #8b87d1; $custom-dark: #000000;
JSON
{
"hex": "#5159bd",
"rgb": {
"r": 81,
"g": 89,
"b": 189
},
"hsl": {
"h": 235.556,
"s": 45,
"l": 52.941
},
"oklch": {
"l": 0.51124,
"c": 0.15489,
"h": 276
},
"luminance": 0.12568
}Semantic roles & 50–950 ramp
primary
#5159BD
secondary
#CCC99E
accent
#CB53D5
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0B14
muted
#7E7C82