#2E0C4F#2E0C4F
#2E0C4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.113 H 301.7°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2E0C4F |
|---|---|
| RGB | rgb(46, 12, 79) |
| HSL | hsl(270, 74%, 18%) |
| HSV | hsv(270, 85%, 31%) |
| CMYK | cmyk(41.8%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(12.01, 31.23, -33.78) |
| CIE-LCH | lch(12.01, 46.01, 312.75°) |
| OKLab | oklab(25.57% 0.0595 -0.0965) |
| OKLCH | oklch(25.57% 0.113 301.7) |
| XYZ | xyz(2.6691, 1.4083, 7.5268) |
| Luminance | 0.0141 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.59
Dark Violet
#34013F
ΔE00 4.93
Midnight Purple
#280137
ΔE00 5.19
Deep Purple
#36013F
ΔE00 5.31
Dark Purple
#35063E
ΔE00 5.32
Very Dark Purple
#2A0134
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E0C4F #2D4F0C
analogous
#0D0C4F #2E0C4F #4F0C4E
triadic
#2E0C4F #4F2E0C #0C4F2E
tetradic
#2E0C4F #4F0D0C #2D4F0C #0C4E4F
square
#2E0C4F #4F0D0C #2D4F0C #0C4E4F
split-complementary
#2E0C4F #4E4F0C #0C4F0D
monochromatic
#0F041B #0F041B #2E0C4F #4D1484 #6C1CB9
Accessibility & contrast
On white
16.39
#2E0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.28
#2E0C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E0C4F
16.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E0C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E0C4F | 1.00 | 16.39 | 1.28 | 16.39 |
| #FFFFFF | 16.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#271E2D
Achromatopsia (no color)
#202020
Design tokens & code
CSS
--color: #2e0c4f; /* rgb */ color: rgb(46, 12, 79); /* oklch */ color: oklch(25.6% 0.113 301.7);
Tailwind
colors: {
custom: {
50: '#6b4f81',
500: '#2e0c4f',
950: '#000000',
},
}SCSS
$custom: #2e0c4f; $custom-light: #6b4f81; $custom-dark: #000000;
JSON
{
"hex": "#2e0c4f",
"rgb": {
"r": 46,
"g": 12,
"b": 79
},
"hsl": {
"h": 270.448,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.25567,
"c": 0.11331,
"h": 301.7
},
"luminance": 0.01408
}Semantic roles & 50–950 ramp
primary
#2E0C4F
secondary
#5B8B2C
accent
#F03893
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C