#5158CD#5158CD
#5158CD is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.1% C 0.178 H 275.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #5158CD |
|---|---|
| RGB | rgb(81, 88, 205) |
| HSL | hsl(237, 55%, 56%) |
| HSV | hsv(237, 60%, 80%) |
| CMYK | cmyk(60.5%, 57.1%, 0%, 19.6%) |
| CIE-LAB | lab(42.97, 32.43, -61.70) |
| CIE-LCH | lch(42.97, 69.70, 297.73°) |
| OKLab | oklab(52.12% 0.0178 -0.1772) |
| OKLCH | oklch(52.12% 0.178 275.7) |
| XYZ | xyz(17.8989, 13.1352, 59.3379) |
| Luminance | 0.1314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.90
Iris
#6258C4
ΔE00 3.18
Dark Periwinkle
#665FD1
ΔE00 3.89
Slate Blue
#6A5ACD
ΔE00 4.26
Light Indigo
#6D5ACF
ΔE00 4.81
Azul
#1D5DEC
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5158CD #CDC651
analogous
#5196CD #5158CD #8851CD
triadic
#5158CD #CD5158 #58CD51
tetradic
#5158CD #CD5196 #CDC651 #51CD88
square
#5158CD #CD5196 #CDC651 #51CD88
split-complementary
#5158CD #CD8851 #96CD51
monochromatic
#252A7F #3239AF #5158CD #8186DB #B0B3E8
Accessibility & contrast
On white
5.79
#5158CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#5158CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5158CD
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5158CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5158CD | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#00748A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #5158cd; /* rgb */ color: rgb(81, 88, 205); /* oklch */ color: oklch(52.1% 0.178 275.7);
Tailwind
colors: {
custom: {
50: '#8e87dd',
500: '#5158cd',
950: '#000000',
},
}SCSS
$custom: #5158cd; $custom-light: #8e87dd; $custom-dark: #000000;
JSON
{
"hex": "#5158cd",
"rgb": {
"r": 81,
"g": 88,
"b": 205
},
"hsl": {
"h": 236.613,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.52122,
"c": 0.17811,
"h": 275.7
},
"luminance": 0.13137
}Semantic roles & 50–950 ramp
primary
#5158CD
secondary
#D7D4A3
accent
#D649DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83