#51387F#51387F
#51387F is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.5% C 0.116 H 297.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #51387F |
|---|---|
| RGB | rgb(81, 56, 127) |
| HSL | hsl(261, 39%, 36%) |
| HSV | hsv(261, 56%, 50%) |
| CMYK | cmyk(36.2%, 55.9%, 0%, 50.2%) |
| CIE-LAB | lab(29.69, 27.86, -36.41) |
| CIE-LCH | lch(29.69, 45.85, 307.42°) |
| OKLab | oklab(40.55% 0.053 -0.103) |
| OKLCH | oklch(40.55% 0.116 297.2) |
| XYZ | xyz(8.6373, 6.1099, 20.7988) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.94
Rebeccapurple
#663399
ΔE00 6.09
Blueberry
#464196
ΔE00 6.13
Twilight
#4E518B
ΔE00 8.94
Ocean Blue
#4F42B5
ΔE00 9.58
Dusk
#4E5481
ΔE00 10.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51387F #667F38
analogous
#38427F #51387F #74387F
triadic
#51387F #7F5138 #387F51
tetradic
#51387F #7F3842 #667F38 #387F74
square
#51387F #7F3842 #667F38 #387F74
split-complementary
#51387F #7F7438 #427F38
monochromatic
#1B132A #362555 #51387F #6C4BA9 #8D71C0
Accessibility & contrast
On white
9.45
#51387F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#51387F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51387F
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51387F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51387F | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#22457D
Tritanopia (blue-blind)
#474656
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #51387f; /* rgb */ color: rgb(81, 56, 127); /* oklch */ color: oklch(40.5% 0.116 297.2);
Tailwind
colors: {
custom: {
50: '#856fa4',
500: '#51387f',
950: '#000000',
},
}SCSS
$custom: #51387f; $custom-light: #856fa4; $custom-dark: #000000;
JSON
{
"hex": "#51387f",
"rgb": {
"r": 81,
"g": 56,
"b": 127
},
"hsl": {
"h": 261.127,
"s": 38.798,
"l": 35.882
},
"oklch": {
"l": 0.40547,
"c": 0.11586,
"h": 297.2
},
"luminance": 0.0611
}Semantic roles & 50–950 ramp
primary
#51387F
secondary
#93A969
accent
#CF59A5
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B070F
muted
#7C7A7F