#51299B#51299B
#51299B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.173 H 293.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #51299B |
|---|---|
| RGB | rgb(81, 41, 155) |
| HSL | hsl(261, 58%, 38%) |
| HSV | hsv(261, 74%, 61%) |
| CMYK | cmyk(47.7%, 73.5%, 0%, 39.2%) |
| CIE-LAB | lab(28.65, 44.39, -55.40) |
| CIE-LCH | lch(28.65, 70.99, 308.71°) |
| OKLab | oklab(40.46% 0.0678 -0.1588) |
| OKLCH | oklch(40.46% 0.173 293.1) |
| XYZ | xyz(10.1010, 5.7014, 31.5723) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.64
Indigo Blue
#3A18B1
ΔE00 5.28
Darkslateblue
#483D8B
ΔE00 6.77
Violet Blue
#510AC9
ΔE00 6.81
Indigo
#4B0082
ΔE00 7.04
Purple Blue
#5D21D0
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51299B #739B29
analogous
#293A9B #51299B #8A299B
triadic
#51299B #9B5129 #299B51
tetradic
#51299B #9B293A #739B29 #299B8A
square
#51299B #9B293A #739B29 #299B8A
split-complementary
#51299B #9B8A29 #3A9B29
monochromatic
#1E0F3A #381C6B #51299B #6B37CA #8F67D7
Accessibility & contrast
On white
9.81
#51299B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#51299B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51299B
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51299B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51299B | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#3A475F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #51299b; /* rgb */ color: rgb(81, 41, 155); /* oklch */ color: oklch(40.5% 0.173 293.1);
Tailwind
colors: {
custom: {
50: '#8967b9',
500: '#51299b',
950: '#000000',
},
}SCSS
$custom: #51299b; $custom-light: #8967b9; $custom-dark: #000000;
JSON
{
"hex": "#51299b",
"rgb": {
"r": 81,
"g": 41,
"b": 155
},
"hsl": {
"h": 261.053,
"s": 58.163,
"l": 38.431
},
"oklch": {
"l": 0.40464,
"c": 0.17267,
"h": 293.1
},
"luminance": 0.05702
}Semantic roles & 50–950 ramp
primary
#51299B
secondary
#9DBD63
accent
#E146AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81