#2A1776#2A1776
#2A1776 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.149 H 282.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1776 |
|---|---|
| RGB | rgb(42, 23, 118) |
| HSL | hsl(252, 67%, 28%) |
| HSV | hsv(252, 81%, 46%) |
| CMYK | cmyk(64.4%, 80.5%, 0%, 53.7%) |
| CIE-LAB | lab(17.52, 36.81, -50.66) |
| CIE-LCH | lch(17.52, 62.62, 306.00°) |
| OKLab | oklab(30.54% 0.0314 -0.1461) |
| OKLCH | oklch(30.54% 0.149 282.1) |
| XYZ | xyz(4.5302, 2.4127, 17.3630) |
| Luminance | 0.0241 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Indigo (survey)
#380282
ΔE00 4.19
Dark Royal Blue
#02066F
ΔE00 4.55
Deep Blue
#040273
ΔE00 4.80
Royal
#0C1793
ΔE00 4.94
Navy
#000080
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1776 #637617
analogous
#173376 #2A1776 #591776
triadic
#2A1776 #762A17 #17762A
tetradic
#2A1776 #761733 #637617 #177659
square
#2A1776 #761733 #637617 #177659
split-complementary
#2A1776 #765917 #337617
monochromatic
#09051A #180D43 #2A1776 #3C21A9 #5231D7
Accessibility & contrast
On white
14.16
#2A1776 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2A1776 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1776
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1776 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1776 | 1.00 | 14.16 | 1.48 | 14.16 |
| #FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2a1776; /* rgb */ color: rgb(42, 23, 118); /* oklch */ color: oklch(30.5% 0.149 282.1);
Tailwind
colors: {
custom: {
50: '#6f579f',
500: '#2a1776',
950: '#000000',
},
}SCSS
$custom: #2a1776; $custom-light: #6f579f; $custom-dark: #000000;
JSON
{
"hex": "#2a1776",
"rgb": {
"r": 42,
"g": 23,
"b": 118
},
"hsl": {
"h": 252,
"s": 67.376,
"l": 27.647
},
"oklch": {
"l": 0.30537,
"c": 0.14947,
"h": 282.1
},
"luminance": 0.02413
}Semantic roles & 50–950 ramp
primary
#2A1776
secondary
#95AB3E
accent
#EA3EC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E