#51397C#51397C
#51397C is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.5% C 0.110 H 297.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #51397C |
|---|---|
| RGB | rgb(81, 57, 124) |
| HSL | hsl(261, 37%, 35%) |
| HSV | hsv(261, 54%, 49%) |
| CMYK | cmyk(34.7%, 54%, 0%, 51.4%) |
| CIE-LAB | lab(29.74, 26.39, -34.45) |
| CIE-LCH | lch(29.74, 43.39, 307.45°) |
| OKLab | oklab(40.52% 0.0514 -0.0973) |
| OKLCH | oklch(40.52% 0.11 297.8) |
| XYZ | xyz(8.4937, 6.1307, 19.8007) |
| Luminance | 0.0613 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.36
Blueberry
#464196
ΔE00 6.56
Rebeccapurple
#663399
ΔE00 6.70
Twilight
#4E518B
ΔE00 8.77
Ocean Blue
#4F42B5
ΔE00 10.18
Dusk
#4E5481
ΔE00 10.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51397C #647C39
analogous
#39427C #51397C #73397C
triadic
#51397C #7C5139 #397C51
tetradic
#51397C #7C3942 #647C39 #397C73
square
#51397C #7C3942 #647C39 #397C73
split-complementary
#51397C #7C7339 #427C39
monochromatic
#1A1228 #362652 #51397C #6C4CA6 #8D71BE
Accessibility & contrast
On white
9.43
#51397C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#51397C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51397C
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51397C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51397C | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#20467E
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#484655
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #51397c; /* rgb */ color: rgb(81, 57, 124); /* oklch */ color: oklch(40.5% 0.110 297.8);
Tailwind
colors: {
custom: {
50: '#8470a2',
500: '#51397c',
950: '#000000',
},
}SCSS
$custom: #51397c; $custom-light: #8470a2; $custom-dark: #000000;
JSON
{
"hex": "#51397c",
"rgb": {
"r": 81,
"g": 57,
"b": 124
},
"hsl": {
"h": 261.493,
"s": 37.017,
"l": 35.49
},
"oklch": {
"l": 0.40523,
"c": 0.11002,
"h": 297.8
},
"luminance": 0.06131
}Semantic roles & 50–950 ramp
primary
#51397C
secondary
#91A76A
accent
#CD5BA4
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F