#2E0F76#2E0F76
#2E0F76 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.156 H 285.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2E0F76 |
|---|---|
| RGB | rgb(46, 15, 118) |
| HSL | hsl(258, 77%, 26%) |
| HSV | hsv(258, 87%, 46%) |
| CMYK | cmyk(61%, 87.3%, 0%, 53.7%) |
| CIE-LAB | lab(16.65, 41.03, -52.08) |
| CIE-LCH | lch(16.65, 66.30, 308.23°) |
| OKLab | oklab(30.04% 0.0428 -0.15) |
| OKLCH | oklch(30.04% 0.156 285.9) |
| XYZ | xyz(4.5666, 2.2302, 17.3259) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.75
Midnight Blue
#191970
ΔE00 4.05
Deep Blue
#040273
ΔE00 4.28
Dark Royal Blue
#02066F
ΔE00 4.33
Navy
#000080
ΔE00 4.52
Darkblue
#00008B
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E0F76 #57760F
analogous
#0F2376 #2E0F76 #610F76
triadic
#2E0F76 #762E0F #0F762E
tetradic
#2E0F76 #760F23 #57760F #0F7661
square
#2E0F76 #760F23 #57760F #0F7661
split-complementary
#2E0F76 #76610F #23760F
monochromatic
#0B031B #190840 #2E0F76 #4316AC #581DE2
Accessibility & contrast
On white
14.52
#2E0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2E0F76 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E0F76
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E0F76 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E0F76 | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#053044
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e0f76; /* rgb */ color: rgb(46, 15, 118); /* oklch */ color: oklch(30.0% 0.156 285.9);
Tailwind
colors: {
custom: {
50: '#71539f',
500: '#2e0f76',
950: '#000000',
},
}SCSS
$custom: #2e0f76; $custom-light: #71539f; $custom-dark: #000000;
JSON
{
"hex": "#2e0f76",
"rgb": {
"r": 46,
"g": 15,
"b": 118
},
"hsl": {
"h": 258.058,
"s": 77.444,
"l": 26.078
},
"oklch": {
"l": 0.30039,
"c": 0.15603,
"h": 285.9
},
"luminance": 0.0223
}Semantic roles & 50–950 ramp
primary
#2E0F76
secondary
#89AD33
accent
#F434BA
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#09030F
muted
#7B787E