#2E1679#2E1679
#2E1679 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.154 H 284.1°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1679 |
|---|---|
| RGB | rgb(46, 22, 121) |
| HSL | hsl(255, 69%, 28%) |
| HSV | hsv(255, 82%, 47%) |
| CMYK | cmyk(62%, 81.8%, 0%, 52.5%) |
| CIE-LAB | lab(18.08, 38.75, -51.66) |
| CIE-LCH | lch(18.08, 64.58, 306.88°) |
| OKLab | oklab(31.12% 0.0375 -0.1489) |
| OKLCH | oklch(31.12% 0.154 284.1) |
| XYZ | xyz(4.8638, 2.5348, 18.3184) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.38
Indigo (survey)
#380282
ΔE00 3.48
Royal
#0C1793
ΔE00 4.83
Dark Royal Blue
#02066F
ΔE00 4.88
Deep Blue
#040273
ΔE00 4.98
Navy
#000080
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1679 #617916
analogous
#163079 #2E1679 #5F1679
triadic
#2E1679 #792E16 #16792E
tetradic
#2E1679 #791630 #617916 #16795F
square
#2E1679 #791630 #617916 #16795F
split-complementary
#2E1679 #795F16 #307916
monochromatic
#0A051A #1A0D45 #2E1679 #421FAD #5930D9
Accessibility & contrast
On white
13.93
#2E1679 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2E1679 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1679
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1679 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1679 | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1679; /* rgb */ color: rgb(46, 22, 121); /* oklch */ color: oklch(31.1% 0.154 284.1);
Tailwind
colors: {
custom: {
50: '#7157a1',
500: '#2e1679',
950: '#000000',
},
}SCSS
$custom: #2e1679; $custom-light: #7157a1; $custom-dark: #000000;
JSON
{
"hex": "#2e1679",
"rgb": {
"r": 46,
"g": 22,
"b": 121
},
"hsl": {
"h": 254.545,
"s": 69.231,
"l": 28.039
},
"oklch": {
"l": 0.31122,
"c": 0.15355,
"h": 284.1
},
"luminance": 0.02535
}Semantic roles & 50–950 ramp
primary
#2E1679
secondary
#93AE3D
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F