#2A1583#2A1583
#2A1583 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.167 H 279.8°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1583 |
|---|---|
| RGB | rgb(42, 21, 131) |
| HSL | hsl(251, 72%, 30%) |
| HSV | hsv(251, 84%, 51%) |
| CMYK | cmyk(67.9%, 84%, 0%, 48.6%) |
| CIE-LAB | lab(18.66, 41.86, -57.08) |
| CIE-LCH | lch(18.66, 70.78, 306.26°) |
| OKLab | oklab(31.77% 0.0284 -0.1648) |
| OKLCH | oklch(31.77% 0.167 279.8) |
| XYZ | xyz(5.3184, 2.6668, 21.7028) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.22
Indigo (survey)
#380282
ΔE00 3.28
Midnight Blue
#191970
ΔE00 3.98
Darkblue
#00008B
ΔE00 4.13
Navy
#000080
ΔE00 4.34
Deep Blue
#040273
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1583 #6E8315
analogous
#153783 #2A1583 #611583
triadic
#2A1583 #832A15 #15832A
tetradic
#2A1583 #831537 #6E8315 #158361
square
#2A1583 #831537 #6E8315 #158361
split-complementary
#2A1583 #836115 #378315
monochromatic
#08041A #190D4E #2A1583 #3B1DB8 #5534DE
Accessibility & contrast
On white
13.70
#2A1583 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2A1583 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1583
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1583 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1583 | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2a1583; /* rgb */ color: rgb(42, 21, 131); /* oklch */ color: oklch(31.8% 0.167 279.8);
Tailwind
colors: {
custom: {
50: '#7257a8',
500: '#2a1583',
950: '#000000',
},
}SCSS
$custom: #2a1583; $custom-light: #7257a8; $custom-dark: #000000;
JSON
{
"hex": "#2a1583",
"rgb": {
"r": 42,
"g": 21,
"b": 131
},
"hsl": {
"h": 251.455,
"s": 72.368,
"l": 29.804
},
"oklch": {
"l": 0.31766,
"c": 0.16721,
"h": 279.8
},
"luminance": 0.02667
}Semantic roles & 50–950 ramp
primary
#2A1583
secondary
#A0B83C
accent
#EF39CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F