#2E1678#2E1678
#2E1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 284.4°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1678 |
|---|---|
| RGB | rgb(46, 22, 120) |
| HSL | hsl(255, 69%, 28%) |
| HSV | hsv(255, 82%, 47%) |
| CMYK | cmyk(61.7%, 81.7%, 0%, 52.9%) |
| CIE-LAB | lab(17.97, 38.45, -51.20) |
| CIE-LCH | lch(17.97, 64.03, 306.90°) |
| OKLab | oklab(31.01% 0.0379 -0.1476) |
| OKLCH | oklch(31.01% 0.152 284.4) |
| XYZ | xyz(4.8027, 2.5104, 17.9971) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.33
Indigo (survey)
#380282
ΔE00 3.56
Dark Royal Blue
#02066F
ΔE00 4.86
Royal
#0C1793
ΔE00 4.97
Deep Blue
#040273
ΔE00 4.98
Navy
#000080
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1678 #607816
analogous
#162F78 #2E1678 #5F1678
triadic
#2E1678 #782E16 #16782E
tetradic
#2E1678 #78162F #607816 #16785F
square
#2E1678 #78162F #607816 #16785F
split-complementary
#2E1678 #785F16 #2F7816
monochromatic
#0A051A #1A0D44 #2E1678 #421FAC #592FD9
Accessibility & contrast
On white
13.98
#2E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1678 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1678
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1678 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1678 | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1678; /* rgb */ color: rgb(46, 22, 120); /* oklch */ color: oklch(31.0% 0.152 284.4);
Tailwind
colors: {
custom: {
50: '#7157a0',
500: '#2e1678',
950: '#000000',
},
}SCSS
$custom: #2e1678; $custom-light: #7157a0; $custom-dark: #000000;
JSON
{
"hex": "#2e1678",
"rgb": {
"r": 46,
"g": 22,
"b": 120
},
"hsl": {
"h": 254.694,
"s": 69.014,
"l": 27.843
},
"oklch": {
"l": 0.31013,
"c": 0.15234,
"h": 284.4
},
"luminance": 0.02511
}Semantic roles & 50–950 ramp
primary
#2E1678
secondary
#92AD3C
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F