#2A1689#2A1689
#2A1689 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.174 H 278.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1689 |
|---|---|
| RGB | rgb(42, 22, 137) |
| HSL | hsl(250, 72%, 31%) |
| HSV | hsv(250, 84%, 54%) |
| CMYK | cmyk(69.3%, 83.9%, 0%, 46.3%) |
| CIE-LAB | lab(19.52, 43.23, -59.42) |
| CIE-LCH | lch(19.52, 73.48, 306.04°) |
| OKLab | oklab(32.57% 0.0259 -0.1716) |
| OKLCH | oklch(32.57% 0.174 278.6) |
| XYZ | xyz(5.7557, 2.8717, 23.9130) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.61
Indigo (survey)
#380282
ΔE00 3.56
Darkblue
#00008B
ΔE00 4.08
Cobalt Blue
#030AA7
ΔE00 4.54
Navy
#000080
ΔE00 4.61
Midnight Blue
#191970
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1689 #758916
analogous
#163B89 #2A1689 #631689
triadic
#2A1689 #892A16 #16892A
tetradic
#2A1689 #89163B #758916 #168963
square
#2A1689 #89163B #758916 #168963
split-complementary
#2A1689 #896316 #3B8916
monochromatic
#0A0520 #1A0E54 #2A1689 #3A1EBE #573ADF
Accessibility & contrast
On white
13.34
#2A1689 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2A1689 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1689
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1689 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1689 | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2a1689; /* rgb */ color: rgb(42, 22, 137); /* oklch */ color: oklch(32.6% 0.174 278.6);
Tailwind
colors: {
custom: {
50: '#7358ad',
500: '#2a1689',
950: '#000000',
},
}SCSS
$custom: #2a1689; $custom-light: #7358ad; $custom-dark: #000000;
JSON
{
"hex": "#2a1689",
"rgb": {
"r": 42,
"g": 22,
"b": 137
},
"hsl": {
"h": 250.435,
"s": 72.327,
"l": 31.176
},
"oklch": {
"l": 0.3257,
"c": 0.17357,
"h": 278.6
},
"luminance": 0.02872
}Semantic roles & 50–950 ramp
primary
#2A1689
secondary
#A7BD3E
accent
#EF39CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F