#2E1977#2E1977
#2E1977 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.148 H 284.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1977 |
|---|---|
| RGB | rgb(46, 25, 119) |
| HSL | hsl(253, 65%, 28%) |
| HSV | hsv(253, 79%, 47%) |
| CMYK | cmyk(61.3%, 79%, 0%, 53.3%) |
| CIE-LAB | lab(18.40, 36.58, -49.84) |
| CIE-LCH | lch(18.40, 61.83, 306.28°) |
| OKLab | oklab(31.28% 0.036 -0.1436) |
| OKLCH | oklch(31.28% 0.148 284.1) |
| XYZ | xyz(4.8031, 2.6077, 17.6994) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Indigo (survey)
#380282
ΔE00 4.21
Royal
#0C1793
ΔE00 5.14
Dark Royal Blue
#02066F
ΔE00 5.21
Deep Blue
#040273
ΔE00 5.44
Navy
#000080
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1977 #627719
analogous
#193377 #2E1977 #5D1977
triadic
#2E1977 #772E19 #19772E
tetradic
#2E1977 #771933 #627719 #19775D
square
#2E1977 #771933 #627719 #19775D
split-complementary
#2E1977 #775D19 #337719
monochromatic
#0A0519 #1A0E44 #2E1977 #4224AA #5936D5
Accessibility & contrast
On white
13.80
#2E1977 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2E1977 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1977
13.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1977 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1977 | 1.00 | 13.80 | 1.52 | 13.80 |
| #FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#023447
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e1977; /* rgb */ color: rgb(46, 25, 119); /* oklch */ color: oklch(31.3% 0.148 284.1);
Tailwind
colors: {
custom: {
50: '#71599f',
500: '#2e1977',
950: '#000000',
},
}SCSS
$custom: #2e1977; $custom-light: #71599f; $custom-dark: #000000;
JSON
{
"hex": "#2e1977",
"rgb": {
"r": 46,
"g": 25,
"b": 119
},
"hsl": {
"h": 253.404,
"s": 65.278,
"l": 28.235
},
"oklch": {
"l": 0.31283,
"c": 0.14808,
"h": 284.1
},
"luminance": 0.02608
}Semantic roles & 50–950 ramp
primary
#2E1977
secondary
#94AC40
accent
#E840C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E