#2A116A#2A116A
#2A116A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.140 H 286.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2A116A |
|---|---|
| RGB | rgb(42, 17, 106) |
| HSL | hsl(257, 72%, 24%) |
| HSV | hsv(257, 84%, 42%) |
| CMYK | cmyk(60.4%, 84%, 0%, 58.4%) |
| CIE-LAB | lab(15.13, 36.11, -46.80) |
| CIE-LCH | lch(15.13, 59.11, 307.65°) |
| OKLab | oklab(28.48% 0.0393 -0.1348) |
| OKLCH | oklch(28.48% 0.14 286.3) |
| XYZ | xyz(3.7560, 1.9335, 13.8082) |
| Luminance | 0.0193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Dark Indigo
#1F0954
ΔE00 3.98
Darkblue (survey)
#030764
ΔE00 4.25
Dark Royal Blue
#02066F
ΔE00 4.28
Deep Blue
#040273
ΔE00 4.62
Indigo (survey)
#380282
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A116A #516A11
analogous
#11256A #2A116A #57116A
triadic
#2A116A #6A2A11 #116A2A
tetradic
#2A116A #6A1125 #516A11 #116A57
square
#2A116A #6A1125 #516A11 #116A57
split-complementary
#2A116A #6A5711 #256A11
monochromatic
#0A041A #150935 #2A116A #3F199F #5422D3
Accessibility & contrast
On white
15.14
#2A116A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2A116A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A116A
15.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A116A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A116A | 1.00 | 15.14 | 1.39 | 15.14 |
| #FFFFFF | 15.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#092C3E
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2a116a; /* rgb */ color: rgb(42, 17, 106); /* oklch */ color: oklch(28.5% 0.140 286.3);
Tailwind
colors: {
custom: {
50: '#6d5396',
500: '#2a116a',
950: '#000000',
},
}SCSS
$custom: #2a116a; $custom-light: #6d5396; $custom-dark: #000000;
JSON
{
"hex": "#2a116a",
"rgb": {
"r": 42,
"g": 17,
"b": 106
},
"hsl": {
"h": 256.854,
"s": 72.358,
"l": 24.118
},
"oklch": {
"l": 0.28479,
"c": 0.14041,
"h": 286.3
},
"luminance": 0.01934
}Semantic roles & 50–950 ramp
primary
#2A116A
secondary
#83A235
accent
#EF39BC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E