#2A113F#2A113F
#2A113F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.2% C 0.085 H 306.0°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A113F |
|---|---|
| RGB | rgb(42, 17, 63) |
| HSL | hsl(273, 58%, 16%) |
| HSV | hsv(273, 73%, 25%) |
| CMYK | cmyk(33.3%, 73%, 0%, 75.3%) |
| CIE-LAB | lab(10.94, 23.13, -24.38) |
| CIE-LCH | lch(10.94, 33.61, 313.49°) |
| OKLab | oklab(24.22% 0.0501 -0.069) |
| OKLCH | oklch(24.22% 0.085 306) |
| XYZ | xyz(2.0523, 1.2520, 4.8352) |
| Luminance | 0.0125 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Purple
#280137
ΔE00 3.99
Dark Purple
#35063E
ΔE00 4.31
Very Dark Purple
#2A0134
ΔE00 4.39
Dark Violet
#34013F
ΔE00 4.91
Deep Purple
#36013F
ΔE00 5.19
Eggplant
#380835
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A113F #263F11
analogous
#13113F #2A113F #3F113D
triadic
#2A113F #3F2A11 #113F2A
tetradic
#2A113F #3F1311 #263F11 #113D3F
square
#2A113F #3F1311 #263F11 #113D3F
split-complementary
#2A113F #3D3F11 #113F13
monochromatic
#100718 #100718 #2A113F #4A1E6F #6A2B9F
Accessibility & contrast
On white
16.79
#2A113F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.25
#2A113F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A113F
16.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A113F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A113F | 1.00 | 16.79 | 1.25 | 16.79 |
| #FFFFFF | 16.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#071D3E
Tritanopia (blue-blind)
#261B26
Achromatopsia (no color)
#1D1D1D
Design tokens & code
CSS
--color: #2a113f; /* rgb */ color: rgb(42, 17, 63); /* oklch */ color: oklch(24.2% 0.085 306.0);
Tailwind
colors: {
custom: {
50: '#665174',
500: '#2a113f',
950: '#000000',
},
}SCSS
$custom: #2a113f; $custom-light: #665174; $custom-dark: #000000;
JSON
{
"hex": "#2a113f",
"rgb": {
"r": 42,
"g": 17,
"b": 63
},
"hsl": {
"h": 272.609,
"s": 57.5,
"l": 15.686
},
"oklch": {
"l": 0.24224,
"c": 0.08531,
"h": 306
},
"luminance": 0.01252
}Semantic roles & 50–950 ramp
primary
#2A113F
secondary
#537833
accent
#E1478D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B