#2E1776#2E1776
#2E1776 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.149 H 284.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1776 |
|---|---|
| RGB | rgb(46, 23, 118) |
| HSL | hsl(255, 67%, 28%) |
| HSV | hsv(255, 81%, 46%) |
| CMYK | cmyk(61%, 80.5%, 0%, 53.7%) |
| CIE-LAB | lab(17.92, 37.32, -49.98) |
| CIE-LCH | lch(17.92, 62.38, 306.75°) |
| OKLab | oklab(30.92% 0.0378 -0.144) |
| OKLCH | oklch(30.92% 0.149 284.7) |
| XYZ | xyz(4.7021, 2.5013, 17.3711) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.15
Indigo (survey)
#380282
ΔE00 3.90
Dark Royal Blue
#02066F
ΔE00 4.96
Deep Blue
#040273
ΔE00 5.15
Royal
#0C1793
ΔE00 5.26
Navy
#000080
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1776 #5F7617
analogous
#173076 #2E1776 #5D1776
triadic
#2E1776 #762E17 #17762E
tetradic
#2E1776 #761730 #5F7617 #17765D
square
#2E1776 #761730 #5F7617 #17765D
split-complementary
#2E1776 #765D17 #307617
monochromatic
#0A051A #1A0D43 #2E1776 #4221A9 #5931D7
Accessibility & contrast
On white
14.00
#2E1776 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1776 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1776
14.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1776 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1776 | 1.00 | 14.00 | 1.50 | 14.00 |
| #FFFFFF | 14.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#043346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1776; /* rgb */ color: rgb(46, 23, 118); /* oklch */ color: oklch(30.9% 0.149 284.7);
Tailwind
colors: {
custom: {
50: '#71579f',
500: '#2e1776',
950: '#000000',
},
}SCSS
$custom: #2e1776; $custom-light: #71579f; $custom-dark: #000000;
JSON
{
"hex": "#2e1776",
"rgb": {
"r": 46,
"g": 23,
"b": 118
},
"hsl": {
"h": 254.526,
"s": 67.376,
"l": 27.647
},
"oklch": {
"l": 0.3092,
"c": 0.1489,
"h": 284.7
},
"luminance": 0.02502
}Semantic roles & 50–950 ramp
primary
#2E1776
secondary
#91AB3E
accent
#EA3EC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E