#2E1A6A#2E1A6A
#2E1A6A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.130 H 287.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1A6A |
|---|---|
| RGB | rgb(46, 26, 106) |
| HSL | hsl(255, 61%, 26%) |
| HSV | hsv(255, 75%, 42%) |
| CMYK | cmyk(56.6%, 75.5%, 0%, 58.4%) |
| CIE-LAB | lab(17.27, 31.89, -43.27) |
| CIE-LCH | lch(17.27, 53.75, 306.39°) |
| OKLab | oklab(30.09% 0.0386 -0.1244) |
| OKLCH | oklch(30.09% 0.13 287.2) |
| XYZ | xyz(4.0969, 2.3600, 13.8725) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.36
Dark Indigo
#1F0954
ΔE00 4.89
Darkblue (survey)
#030764
ΔE00 5.76
Indigo (survey)
#380282
ΔE00 5.89
Dark Royal Blue
#02066F
ΔE00 5.92
Deep Blue
#040273
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1A6A #566A1A
analogous
#1A2E6A #2E1A6A #561A6A
triadic
#2E1A6A #6A2E1A #1A6A2E
tetradic
#2E1A6A #6A1A2E #566A1A #1A6A56
square
#2E1A6A #6A1A2E #566A1A #1A6A56
split-complementary
#2E1A6A #6A561A #2E6A1A
monochromatic
#0B0619 #190E39 #2E1A6A #43269B #5932CC
Accessibility & contrast
On white
14.27
#2E1A6A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2E1A6A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1A6A
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1A6A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1A6A | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#152F40
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e1a6a; /* rgb */ color: rgb(46, 26, 106); /* oklch */ color: oklch(30.1% 0.130 287.2);
Tailwind
colors: {
custom: {
50: '#6e5895',
500: '#2e1a6a',
950: '#000000',
},
}SCSS
$custom: #2e1a6a; $custom-light: #6e5895; $custom-dark: #000000;
JSON
{
"hex": "#2e1a6a",
"rgb": {
"r": 46,
"g": 26,
"b": 106
},
"hsl": {
"h": 255,
"s": 60.606,
"l": 25.882
},
"oklch": {
"l": 0.30087,
"c": 0.13025,
"h": 287.2
},
"luminance": 0.0236
}Semantic roles & 50–950 ramp
primary
#2E1A6A
secondary
#889F40
accent
#E444BC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E