#2E1773#2E1773
#2E1773 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.145 H 285.5°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1773 |
|---|---|
| RGB | rgb(46, 23, 115) |
| HSL | hsl(255, 67%, 27%) |
| HSV | hsv(255, 80%, 45%) |
| CMYK | cmyk(60%, 80%, 0%, 54.9%) |
| CIE-LAB | lab(17.60, 36.39, -48.58) |
| CIE-LCH | lch(17.60, 60.69, 306.84°) |
| OKLab | oklab(30.6% 0.0387 -0.1399) |
| OKLCH | oklch(30.6% 0.145 285.5) |
| XYZ | xyz(4.5267, 2.4312, 16.4471) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Indigo (survey)
#380282
ΔE00 4.20
Dark Royal Blue
#02066F
ΔE00 4.99
Deep Blue
#040273
ΔE00 5.24
Darkblue (survey)
#030764
ΔE00 5.39
Navy
#000080
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1773 #5C7317
analogous
#172E73 #2E1773 #5C1773
triadic
#2E1773 #732E17 #17732E
tetradic
#2E1773 #73172E #5C7317 #17735C
square
#2E1773 #73172E #5C7317 #17735C
split-complementary
#2E1773 #735C17 #2E7317
monochromatic
#0A051A #1A0D40 #2E1773 #4221A6 #592FD5
Accessibility & contrast
On white
14.13
#2E1773 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2E1773 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1773
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1773 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1773 | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0A3144
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e1773; /* rgb */ color: rgb(46, 23, 115); /* oklch */ color: oklch(30.6% 0.145 285.5);
Tailwind
colors: {
custom: {
50: '#70579c',
500: '#2e1773',
950: '#000000',
},
}SCSS
$custom: #2e1773; $custom-light: #70579c; $custom-dark: #000000;
JSON
{
"hex": "#2e1773",
"rgb": {
"r": 46,
"g": 23,
"b": 115
},
"hsl": {
"h": 255,
"s": 66.667,
"l": 27.059
},
"oklch": {
"l": 0.30599,
"c": 0.14516,
"h": 285.5
},
"luminance": 0.02431
}Semantic roles & 50–950 ramp
primary
#2E1773
secondary
#8EA93D
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E