#2A1784#2A1784
#2A1784 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.167 H 279.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1784 |
|---|---|
| RGB | rgb(42, 23, 132) |
| HSL | hsl(250, 70%, 30%) |
| HSV | hsv(250, 83%, 52%) |
| CMYK | cmyk(68.2%, 82.6%, 0%, 48.2%) |
| CIE-LAB | lab(19.10, 41.22, -56.97) |
| CIE-LCH | lch(19.10, 70.32, 305.88°) |
| OKLab | oklab(32.11% 0.0271 -0.1645) |
| OKLCH | oklch(32.11% 0.167 279.3) |
| XYZ | xyz(5.4248, 2.7705, 22.0742) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.07
Indigo (survey)
#380282
ΔE00 3.61
Midnight Blue
#191970
ΔE00 3.94
Darkblue
#00008B
ΔE00 4.37
Navy
#000080
ΔE00 4.64
Deep Blue
#040273
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1784 #718417
analogous
#173A84 #2A1784 #611784
triadic
#2A1784 #842A17 #17842A
tetradic
#2A1784 #84173A #718417 #178461
square
#2A1784 #84173A #718417 #178461
split-complementary
#2A1784 #846117 #3A8417
monochromatic
#09051C #190E50 #2A1784 #3B20B8 #5539DC
Accessibility & contrast
On white
13.51
#2A1784 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A1784 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1784
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1784 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1784 | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1784; /* rgb */ color: rgb(42, 23, 132); /* oklch */ color: oklch(32.1% 0.167 279.3);
Tailwind
colors: {
custom: {
50: '#7258a9',
500: '#2a1784',
950: '#000000',
},
}SCSS
$custom: #2a1784; $custom-light: #7258a9; $custom-dark: #000000;
JSON
{
"hex": "#2a1784",
"rgb": {
"r": 42,
"g": 23,
"b": 132
},
"hsl": {
"h": 250.459,
"s": 70.323,
"l": 30.392
},
"oklch": {
"l": 0.32107,
"c": 0.16673,
"h": 279.3
},
"luminance": 0.02771
}Semantic roles & 50–950 ramp
primary
#2A1784
secondary
#A3B83F
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F