#2E1677#2E1677
#2E1677 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.151 H 284.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1677 |
|---|---|
| RGB | rgb(46, 22, 119) |
| HSL | hsl(255, 69%, 28%) |
| HSV | hsv(255, 82%, 47%) |
| CMYK | cmyk(61.3%, 81.5%, 0%, 53.3%) |
| CIE-LAB | lab(17.86, 38.14, -50.74) |
| CIE-LCH | lch(17.86, 63.47, 306.93°) |
| OKLab | oklab(30.9% 0.0382 -0.1462) |
| OKLCH | oklch(30.9% 0.151 284.6) |
| XYZ | xyz(4.7424, 2.4863, 17.6792) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.28
Indigo (survey)
#380282
ΔE00 3.64
Dark Royal Blue
#02066F
ΔE00 4.85
Deep Blue
#040273
ΔE00 4.99
Royal
#0C1793
ΔE00 5.11
Navy
#000080
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1677 #5F7716
analogous
#162F77 #2E1677 #5E1677
triadic
#2E1677 #772E16 #16772E
tetradic
#2E1677 #77162F #5F7716 #16775E
square
#2E1677 #77162F #5F7716 #16775E
split-complementary
#2E1677 #775E16 #2F7716
monochromatic
#0A051A #1A0C43 #2E1677 #4220AB #592FD9
Accessibility & contrast
On white
14.02
#2E1677 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1677 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1677
14.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1677 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1677 | 1.00 | 14.02 | 1.50 | 14.02 |
| #FFFFFF | 14.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#023346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1677; /* rgb */ color: rgb(46, 22, 119); /* oklch */ color: oklch(30.9% 0.151 284.6);
Tailwind
colors: {
custom: {
50: '#71579f',
500: '#2e1677',
950: '#000000',
},
}SCSS
$custom: #2e1677; $custom-light: #71579f; $custom-dark: #000000;
JSON
{
"hex": "#2e1677",
"rgb": {
"r": 46,
"g": 22,
"b": 119
},
"hsl": {
"h": 254.845,
"s": 68.794,
"l": 27.647
},
"oklch": {
"l": 0.30904,
"c": 0.15111,
"h": 284.6
},
"luminance": 0.02487
}Semantic roles & 50–950 ramp
primary
#2E1677
secondary
#91AC3C
accent
#EC3CC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E