#2E0F4F#2E0F4F
#2E0F4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.110 H 301.0°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2E0F4F |
|---|---|
| RGB | rgb(46, 15, 79) |
| HSL | hsl(269, 68%, 18%) |
| HSV | hsv(269, 81%, 31%) |
| CMYK | cmyk(41.8%, 81%, 0%, 69%) |
| CIE-LAB | lab(12.53, 29.77, -32.95) |
| CIE-LCH | lch(12.53, 44.40, 312.10°) |
| OKLab | oklab(25.93% 0.0564 -0.094) |
| OKLCH | oklch(25.93% 0.11 301) |
| XYZ | xyz(2.7085, 1.4870, 7.5399) |
| Luminance | 0.0149 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.77
Dark Violet
#34013F
ΔE00 5.17
Midnight Purple
#280137
ΔE00 5.35
Dark Purple
#35063E
ΔE00 5.40
Deep Purple
#36013F
ΔE00 5.53
Very Dark Purple
#2A0134
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E0F4F #304F0F
analogous
#0F104F #2E0F4F #4E0F4F
triadic
#2E0F4F #4F2E0F #0F4F2E
tetradic
#2E0F4F #4F0F10 #304F0F #0F4F4E
square
#2E0F4F #4F0F10 #304F0F #0F4F4E
split-complementary
#2E0F4F #4F4E0F #104F0F
monochromatic
#0F051A #10051C #2E0F4F #4C1982 #6A23B6
Accessibility & contrast
On white
16.19
#2E0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.30
#2E0F4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E0F4F
16.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E0F4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E0F4F | 1.00 | 16.19 | 1.30 | 16.19 |
| #FFFFFF | 16.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 16.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#271F2E
Achromatopsia (no color)
#212121
Design tokens & code
CSS
--color: #2e0f4f; /* rgb */ color: rgb(46, 15, 79); /* oklch */ color: oklch(25.9% 0.110 301.0);
Tailwind
colors: {
custom: {
50: '#6b5181',
500: '#2e0f4f',
950: '#000000',
},
}SCSS
$custom: #2e0f4f; $custom-light: #6b5181; $custom-dark: #000000;
JSON
{
"hex": "#2e0f4f",
"rgb": {
"r": 46,
"g": 15,
"b": 79
},
"hsl": {
"h": 269.063,
"s": 68.085,
"l": 18.431
},
"oklch": {
"l": 0.25927,
"c": 0.10965,
"h": 301
},
"luminance": 0.01487
}Semantic roles & 50–950 ramp
primary
#2E0F4F
secondary
#5E8931
accent
#EB3D97
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C