#2A0F4A#2A0F4A
#2A0F4A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.103 H 299.7°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0F4A |
|---|---|
| RGB | rgb(42, 15, 74) |
| HSL | hsl(267, 66%, 17%) |
| HSV | hsv(267, 80%, 29%) |
| CMYK | cmyk(43.2%, 79.7%, 0%, 71%) |
| CIE-LAB | lab(11.47, 27.48, -31.24) |
| CIE-LCH | lch(11.47, 41.61, 311.34°) |
| OKLab | oklab(24.91% 0.0509 -0.0892) |
| OKLCH | oklch(24.91% 0.103 299.7) |
| XYZ | xyz(2.3614, 1.3283, 6.6092) |
| Luminance | 0.0133 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.02
Midnight Purple
#280137
ΔE00 4.81
Dark Violet
#34013F
ΔE00 5.18
Dark Purple
#35063E
ΔE00 5.27
Deep Purple
#36013F
ΔE00 5.57
Very Dark Purple
#2A0134
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0F4A #2F4A0F
analogous
#0F114A #2A0F4A #480F4A
triadic
#2A0F4A #4A2A0F #0F4A2A
tetradic
#2A0F4A #4A0F11 #2F4A0F #0F4A48
square
#2A0F4A #4A0F11 #2F4A0F #0F4A48
split-complementary
#2A0F4A #4A480F #114A0F
monochromatic
#0E0519 #0E0519 #2A0F4A #47197D #6424B0
Accessibility & contrast
On white
16.59
#2A0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.27
#2A0F4A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0F4A
16.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0F4A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0F4A | 1.00 | 16.59 | 1.27 | 16.59 |
| #FFFFFF | 16.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#231E2B
Achromatopsia (no color)
#1E1E1E
Design tokens & code
CSS
--color: #2a0f4a; /* rgb */ color: rgb(42, 15, 74); /* oklch */ color: oklch(24.9% 0.103 299.7);
Tailwind
colors: {
custom: {
50: '#67507d',
500: '#2a0f4a',
950: '#000000',
},
}SCSS
$custom: #2a0f4a; $custom-light: #67507d; $custom-dark: #000000;
JSON
{
"hex": "#2a0f4a",
"rgb": {
"r": 42,
"g": 15,
"b": 74
},
"hsl": {
"h": 267.458,
"s": 66.292,
"l": 17.451
},
"oklch": {
"l": 0.24908,
"c": 0.10268,
"h": 299.7
},
"luminance": 0.01328
}Semantic roles & 50–950 ramp
primary
#2A0F4A
secondary
#5E8430
accent
#E93F9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C