#2A1783#2A1783
#2A1783 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.166 H 279.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1783 |
|---|---|
| RGB | rgb(42, 23, 131) |
| HSL | hsl(251, 70%, 30%) |
| HSV | hsv(251, 82%, 51%) |
| CMYK | cmyk(67.9%, 82.4%, 0%, 48.6%) |
| CIE-LAB | lab(18.98, 40.90, -56.53) |
| CIE-LCH | lch(18.98, 69.78, 305.89°) |
| OKLab | oklab(31.99% 0.0274 -0.1632) |
| OKLCH | oklch(31.99% 0.166 279.5) |
| XYZ | xyz(5.3567, 2.7433, 21.7155) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.18
Indigo (survey)
#380282
ΔE00 3.61
Midnight Blue
#191970
ΔE00 3.82
Darkblue
#00008B
ΔE00 4.41
Navy
#000080
ΔE00 4.63
Deep Blue
#040273
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1783 #708317
analogous
#173A83 #2A1783 #601783
triadic
#2A1783 #832A17 #17832A
tetradic
#2A1783 #83173A #708317 #178360
square
#2A1783 #83173A #708317 #178360
split-complementary
#2A1783 #836017 #3A8317
monochromatic
#09051B #190E4F #2A1783 #3B20B7 #5538DC
Accessibility & contrast
On white
13.56
#2A1783 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A1783 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1783
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1783 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1783 | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a1783; /* rgb */ color: rgb(42, 23, 131); /* oklch */ color: oklch(32.0% 0.166 279.5);
Tailwind
colors: {
custom: {
50: '#7258a8',
500: '#2a1783',
950: '#000000',
},
}SCSS
$custom: #2a1783; $custom-light: #7258a8; $custom-dark: #000000;
JSON
{
"hex": "#2a1783",
"rgb": {
"r": 42,
"g": 23,
"b": 131
},
"hsl": {
"h": 250.556,
"s": 70.13,
"l": 30.196
},
"oklch": {
"l": 0.31993,
"c": 0.16551,
"h": 279.5
},
"luminance": 0.02744
}Semantic roles & 50–950 ramp
primary
#2A1783
secondary
#A2B73F
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F