#51308F#51308F
#51308F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.149 H 294.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #51308F |
|---|---|
| RGB | rgb(81, 48, 143) |
| HSL | hsl(261, 50%, 37%) |
| HSV | hsv(261, 66%, 56%) |
| CMYK | cmyk(43.4%, 66.4%, 0%, 43.9%) |
| CIE-LAB | lab(29.02, 37.22, -47.43) |
| CIE-LCH | lch(29.02, 60.29, 308.13°) |
| OKLab | oklab(40.42% 0.0626 -0.1354) |
| OKLCH | oklch(40.42% 0.149 294.8) |
| XYZ | xyz(9.4069, 5.8462, 26.6141) |
| Luminance | 0.0585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.09
Darkslateblue
#483D8B
ΔE00 4.75
Blueberry
#464196
ΔE00 6.02
Ocean Blue
#4F42B5
ΔE00 7.60
Indigo Blue
#3A18B1
ΔE00 7.68
Indigo
#4B0082
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51308F #6E8F30
analogous
#303F8F #51308F #80308F
triadic
#51308F #8F5130 #308F51
tetradic
#51308F #8F303F #6E8F30 #308F80
square
#51308F #8F303F #6E8F30 #308F80
split-complementary
#51308F #8F8030 #3F8F30
monochromatic
#1D1133 #372161 #51308F #6B3FBD #8E6CCE
Accessibility & contrast
On white
9.68
#51308F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#51308F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51308F
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51308F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51308F | 1.00 | 9.68 | 2.17 | 9.68 |
| #FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#40465B
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #51308f; /* rgb */ color: rgb(81, 48, 143); /* oklch */ color: oklch(40.4% 0.149 294.8);
Tailwind
colors: {
custom: {
50: '#876ab0',
500: '#51308f',
950: '#000000',
},
}SCSS
$custom: #51308f; $custom-light: #876ab0; $custom-dark: #000000;
JSON
{
"hex": "#51308f",
"rgb": {
"r": 81,
"g": 48,
"b": 143
},
"hsl": {
"h": 260.842,
"s": 49.738,
"l": 37.451
},
"oklch": {
"l": 0.40422,
"c": 0.14916,
"h": 294.8
},
"luminance": 0.05846
}Semantic roles & 50–950 ramp
primary
#51308F
secondary
#99B566
accent
#D94FA9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80