#2A0C4F#2A0C4F
#2A0C4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.113 H 297.9°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2A0C4F |
|---|---|
| RGB | rgb(42, 12, 79) |
| HSL | hsl(267, 74%, 18%) |
| HSV | hsv(267, 85%, 31%) |
| CMYK | cmyk(46.8%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(11.41, 30.48, -34.79) |
| CIE-LCH | lch(11.41, 46.26, 311.23°) |
| OKLab | oklab(25.02% 0.0527 -0.0996) |
| OKLCH | oklch(25.02% 0.113 297.9) |
| XYZ | xyz(2.4972, 1.3197, 7.5188) |
| Luminance | 0.0132 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 2.77
Midnight Purple
#280137
ΔE00 5.54
Dark Violet
#34013F
ΔE00 5.63
Night Blue
#040348
ΔE00 5.87
Dark Purple
#35063E
ΔE00 6.02
Deep Purple
#36013F
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A0C4F #314F0C
analogous
#0C0F4F #2A0C4F #4B0C4F
triadic
#2A0C4F #4F2A0C #0C4F2A
tetradic
#2A0C4F #4F0C0F #314F0C #0C4F4B
square
#2A0C4F #4F0C0F #314F0C #0C4F4B
split-complementary
#2A0C4F #4F4B0C #0F4F0C
monochromatic
#0E041B #0E041B #2A0C4F #461484 #621CB9
Accessibility & contrast
On white
16.61
#2A0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.26
#2A0C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A0C4F
16.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A0C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A0C4F | 1.00 | 16.61 | 1.26 | 16.61 |
| #FFFFFF | 16.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#201E2D
Achromatopsia (no color)
#1E1E1E
Design tokens & code
CSS
--color: #2a0c4f; /* rgb */ color: rgb(42, 12, 79); /* oklch */ color: oklch(25.0% 0.113 297.9);
Tailwind
colors: {
custom: {
50: '#684f81',
500: '#2a0c4f',
950: '#000000',
},
}SCSS
$custom: #2a0c4f; $custom-light: #684f81; $custom-dark: #000000;
JSON
{
"hex": "#2a0c4f",
"rgb": {
"r": 42,
"g": 12,
"b": 79
},
"hsl": {
"h": 266.866,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.25016,
"c": 0.11264,
"h": 297.9
},
"luminance": 0.0132
}Semantic roles & 50–950 ramp
primary
#2A0C4F
secondary
#608B2C
accent
#F0389E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C