#51279B#51279B
#51279B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.175 H 293.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #51279B |
|---|---|
| RGB | rgb(81, 39, 155) |
| HSL | hsl(262, 60%, 38%) |
| HSV | hsv(262, 75%, 61%) |
| CMYK | cmyk(47.7%, 74.8%, 0%, 39.2%) |
| CIE-LAB | lab(28.29, 45.39, -55.98) |
| CIE-LCH | lch(28.29, 72.07, 309.04°) |
| OKLab | oklab(40.21% 0.0696 -0.1605) |
| OKLCH | oklch(40.21% 0.175 293.4) |
| XYZ | xyz(10.0336, 5.5666, 31.5498) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.83
Indigo Blue
#3A18B1
ΔE00 5.07
Violet Blue
#510AC9
ΔE00 6.63
Indigo
#4B0082
ΔE00 6.69
Darkslateblue
#483D8B
ΔE00 7.14
Purple Blue
#5D21D0
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#51279B #719B27
analogous
#27379B #51279B #8B279B
triadic
#51279B #9B5127 #279B51
tetradic
#51279B #9B2737 #719B27 #279B8B
square
#51279B #9B2737 #719B27 #279B8B
split-complementary
#51279B #9B8B27 #379B27
monochromatic
#1E0E39 #371B6A #51279B #6B33CC #8E64D8
Accessibility & contrast
On white
9.94
#51279B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#51279B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #51279B
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##51279B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##51279B | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#3B465F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #51279b; /* rgb */ color: rgb(81, 39, 155); /* oklch */ color: oklch(40.2% 0.175 293.4);
Tailwind
colors: {
custom: {
50: '#8965b9',
500: '#51279b',
950: '#000000',
},
}SCSS
$custom: #51279b; $custom-light: #8965b9; $custom-dark: #000000;
JSON
{
"hex": "#51279b",
"rgb": {
"r": 81,
"g": 39,
"b": 155
},
"hsl": {
"h": 261.724,
"s": 59.794,
"l": 38.039
},
"oklch": {
"l": 0.40213,
"c": 0.17494,
"h": 293.4
},
"luminance": 0.05567
}Semantic roles & 50–950 ramp
primary
#51279B
secondary
#9CBE60
accent
#E345AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81