#5158BB#5158BB
#5158BB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.8% C 0.153 H 276.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #5158BB |
|---|---|
| RGB | rgb(81, 88, 187) |
| HSL | hsl(236, 44%, 53%) |
| HSV | hsv(236, 57%, 73%) |
| CMYK | cmyk(56.7%, 52.9%, 0%, 26.7%) |
| CIE-LAB | lab(41.71, 26.45, -53.28) |
| CIE-LCH | lch(41.71, 59.49, 296.40°) |
| OKLab | oklab(50.79% 0.0172 -0.1525) |
| OKLCH | oklch(50.79% 0.153 276.4) |
| XYZ | xyz(15.8498, 12.3155, 48.5460) |
| Luminance | 0.1232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.44
Warm Blue
#4B57DB
ΔE00 4.40
Dark Periwinkle
#665FD1
ΔE00 5.13
Slate Blue
#6A5ACD
ΔE00 5.23
Light Indigo
#6D5ACF
ΔE00 5.85
Ocean Blue
#4F42B5
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5158BB #BBB451
analogous
#518DBB #5158BB #7F51BB
triadic
#5158BB #BB5158 #58BB51
tetradic
#5158BB #BB518D #BBB451 #51BB7F
square
#5158BB #BB518D #BBB451 #51BB7F
split-complementary
#5158BB #BB7F51 #8DBB51
monochromatic
#292D69 #3A4095 #5158BB #7D82CC #A9ACDD
Accessibility & contrast
On white
6.06
#5158BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.46
#5158BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5158BB
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5158BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5158BB | 1.00 | 6.06 | 3.46 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#035EB9
Tritanopia (blue-blind)
#146F81
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5158bb; /* rgb */ color: rgb(81, 88, 187); /* oklch */ color: oklch(50.8% 0.153 276.4);
Tailwind
colors: {
custom: {
50: '#8b87d0',
500: '#5158bb',
950: '#000000',
},
}SCSS
$custom: #5158bb; $custom-light: #8b87d0; $custom-dark: #000000;
JSON
{
"hex": "#5158bb",
"rgb": {
"r": 81,
"g": 88,
"b": 187
},
"hsl": {
"h": 236.038,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.50788,
"c": 0.15343,
"h": 276.4
},
"luminance": 0.12317
}Semantic roles & 50–950 ramp
primary
#5158BB
secondary
#CBC89D
accent
#CB54D4
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82