#2A0B42#2A0B42
#2A0B42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.098 H 305.7°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0B42 |
|---|---|
| RGB | rgb(42, 11, 66) |
| HSL | hsl(274, 71%, 15%) |
| HSV | hsv(274, 83%, 26%) |
| CMYK | cmyk(36.4%, 83.3%, 0%, 74.1%) |
| CIE-LAB | lab(9.99, 27.32, -28.04) |
| CIE-LCH | lch(9.99, 39.15, 314.26°) |
| OKLab | oklab(23.63% 0.0573 -0.0797) |
| OKLCH | oklch(23.63% 0.098 305.7) |
| XYZ | xyz(2.0577, 1.1249, 5.2619) |
| Luminance | 0.0112 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Purple
#280137
ΔE00 2.96
Dark Purple
#35063E
ΔE00 3.71
Dark Violet
#34013F
ΔE00 3.72
Very Dark Purple
#2A0134
ΔE00 3.86
Deep Purple
#36013F
ΔE00 4.14
Dark Indigo
#1F0954
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0B42 #23420B
analogous
#0E0B42 #2A0B42 #420B3F
triadic
#2A0B42 #422A0B #0B422A
tetradic
#2A0B42 #420E0B #23420B #0B3F42
square
#2A0B42 #420E0B #23420B #0B3F42
split-complementary
#2A0B42 #3F420B #0B420E
monochromatic
#11041A #11041A #2A0B42 #4B1476 #6D1CAB
Accessibility & contrast
On white
17.14
#2A0B42 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.22
#2A0B42 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0B42
17.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0B42 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0B42 | 1.00 | 17.14 | 1.22 | 17.14 |
| #FFFFFF | 17.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#261826
Achromatopsia (no color)
#1B1B1B
Design tokens & code
CSS
--color: #2a0b42; /* rgb */ color: rgb(42, 11, 66); /* oklch */ color: oklch(23.6% 0.098 305.7);
Tailwind
colors: {
custom: {
50: '#674d77',
500: '#2a0b42',
950: '#000000',
},
}SCSS
$custom: #2a0b42; $custom-light: #674d77; $custom-dark: #000000;
JSON
{
"hex": "#2a0b42",
"rgb": {
"r": 42,
"g": 11,
"b": 66
},
"hsl": {
"h": 273.818,
"s": 71.429,
"l": 15.098
},
"oklch": {
"l": 0.23631,
"c": 0.09821,
"h": 305.7
},
"luminance": 0.01125
}Semantic roles & 50–950 ramp
primary
#2A0B42
secondary
#4F7F2A
accent
#EE3A88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B