#2A0C4D#2A0C4D
#2A0C4D is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.110 H 298.9°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0C4D |
|---|---|
| RGB | rgb(42, 12, 77) |
| HSL | hsl(268, 73%, 17%) |
| HSV | hsv(268, 84%, 30%) |
| CMYK | cmyk(45.5%, 84.4%, 0%, 69.8%) |
| CIE-LAB | lab(11.21, 29.91, -33.74) |
| CIE-LCH | lch(11.21, 45.09, 311.56°) |
| OKLab | oklab(24.82% 0.0533 -0.0965) |
| OKLCH | oklch(24.82% 0.11 298.9) |
| XYZ | xyz(2.4255, 1.2910, 7.1411) |
| Luminance | 0.0129 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.13
Midnight Purple
#280137
ΔE00 5.14
Dark Violet
#34013F
ΔE00 5.30
Dark Purple
#35063E
ΔE00 5.66
Deep Purple
#36013F
ΔE00 5.72
Night Blue
#040348
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0C4D #2F4D0C
analogous
#0C0F4D #2A0C4D #4A0C4D
triadic
#2A0C4D #4D2A0C #0C4D2A
tetradic
#2A0C4D #4D0C0F #2F4D0C #0C4D4A
square
#2A0C4D #4D0C0F #2F4D0C #0C4D4A
split-complementary
#2A0C4D #4D4A0C #0F4D0C
monochromatic
#0E041A #0E041A #2A0C4D #471482 #641DB7
Accessibility & contrast
On white
16.69
#2A0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.26
#2A0C4D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0C4D
16.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0C4D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0C4D | 1.00 | 16.69 | 1.26 | 16.69 |
| #FFFFFF | 16.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#211D2C
Achromatopsia (no color)
#1E1E1E
Design tokens & code
CSS
--color: #2a0c4d; /* rgb */ color: rgb(42, 12, 77); /* oklch */ color: oklch(24.8% 0.110 298.9);
Tailwind
colors: {
custom: {
50: '#684f7f',
500: '#2a0c4d',
950: '#000000',
},
}SCSS
$custom: #2a0c4d; $custom-light: #684f7f; $custom-dark: #000000;
JSON
{
"hex": "#2a0c4d",
"rgb": {
"r": 42,
"g": 12,
"b": 77
},
"hsl": {
"h": 267.692,
"s": 73.034,
"l": 17.451
},
"oklch": {
"l": 0.24815,
"c": 0.11022,
"h": 298.9
},
"luminance": 0.01291
}Semantic roles & 50–950 ramp
primary
#2A0C4D
secondary
#5E892C
accent
#F0389B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C