#2A1281#2A1281
#2A1281 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.167 H 280.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1281 |
|---|---|
| RGB | rgb(42, 18, 129) |
| HSL | hsl(253, 76%, 29%) |
| HSV | hsv(253, 86%, 51%) |
| CMYK | cmyk(67.4%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(17.96, 42.60, -56.96) |
| CIE-LCH | lch(17.96, 71.13, 306.79°) |
| OKLab | oklab(31.22% 0.0305 -0.1644) |
| OKLCH | oklch(31.22% 0.167 280.5) |
| XYZ | xyz(5.1323, 2.5094, 20.9785) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.85
Royal
#0C1793
ΔE00 3.58
Darkblue
#00008B
ΔE00 3.87
Navy
#000080
ΔE00 3.96
Midnight Blue
#191970
ΔE00 4.05
Deep Blue
#040273
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1281 #698112
analogous
#123281 #2A1281 #621281
triadic
#2A1281 #812A12 #12812A
tetradic
#2A1281 #811232 #698112 #128162
square
#2A1281 #811232 #698112 #128162
split-complementary
#2A1281 #816212 #328112
monochromatic
#09041B #190B4B #2A1281 #3B19B7 #532CE2
Accessibility & contrast
On white
13.98
#2A1281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2A1281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1281
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1281 | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2a1281; /* rgb */ color: rgb(42, 18, 129); /* oklch */ color: oklch(31.2% 0.167 280.5);
Tailwind
colors: {
custom: {
50: '#7255a7',
500: '#2a1281',
950: '#000000',
},
}SCSS
$custom: #2a1281; $custom-light: #7255a7; $custom-dark: #000000;
JSON
{
"hex": "#2a1281",
"rgb": {
"r": 42,
"g": 18,
"b": 129
},
"hsl": {
"h": 252.973,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.31217,
"c": 0.1672,
"h": 280.5
},
"luminance": 0.0251
}Semantic roles & 50–950 ramp
primary
#2A1281
secondary
#9BB738
accent
#F236C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F