#51428C#51428C
#51428C is a dark, moderate violet. Relative luminance 0.075; OKLCH L 43.3% C 0.118 H 289.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).
Color values
| HEX | #51428C |
|---|---|
| RGB | rgb(81, 66, 140) |
| HSL | hsl(252, 36%, 40%) |
| HSV | hsv(252, 53%, 55%) |
| CMYK | cmyk(42.1%, 52.9%, 0%, 45.1%) |
| CIE-LAB | lab(33.00, 25.40, -39.16) |
| CIE-LCH | lch(33.00, 46.68, 302.97°) |
| OKLab | oklab(43.28% 0.0402 -0.1111) |
| OKLCH | oklch(43.28% 0.118 289.9) |
| XYZ | xyz(10.0739, 7.5389, 25.7302) |
| Luminance | 0.0754 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 2.17
Blueberry
#464196
ΔE00 3.30
Twilight
#4E518B
ΔE00 5.75
Rebeccapurple
#663399
ΔE00 6.87
Ocean Blue
#4F42B5
ΔE00 7.01
Dusk
#4E5481
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51428C #7D8C42
analogous
#42588C #51428C #76428C
triadic
#51428C #8C5142 #428C51
tetradic
#51428C #8C4258 #7D8C42 #428C76
square
#51428C #8C4258 #7D8C42 #428C76
split-complementary
#51428C #8C7642 #588C42
monochromatic
#211B39 #392E62 #51428C #6C5AB1 #9184C5
Accessibility & contrast
On white
8.37
#51428C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#51428C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51428C
8.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51428C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51428C | 1.00 | 8.37 | 2.51 | 8.37 |
| #FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#244C8A
Tritanopia (blue-blind)
#415160
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #51428c; /* rgb */ color: rgb(81, 66, 140); /* oklch */ color: oklch(43.3% 0.118 289.9);
Tailwind
colors: {
custom: {
50: '#8576ae',
500: '#51428c',
950: '#000000',
},
}SCSS
$custom: #51428c; $custom-light: #8576ae; $custom-dark: #000000;
JSON
{
"hex": "#51428c",
"rgb": {
"r": 81,
"g": 66,
"b": 140
},
"hsl": {
"h": 252.162,
"s": 35.922,
"l": 40.392
},
"oklch": {
"l": 0.4328,
"c": 0.11814,
"h": 289.9
},
"luminance": 0.07539
}Semantic roles & 50–950 ramp
primary
#51428C
secondary
#A5B07A
accent
#CC5CB5
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F