#2E197E#2E197E
#2E197E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.157 H 282.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2E197E |
|---|---|
| RGB | rgb(46, 25, 126) |
| HSL | hsl(252, 67%, 30%) |
| HSV | hsv(252, 80%, 49%) |
| CMYK | cmyk(63.5%, 80.2%, 0%, 50.6%) |
| CIE-LAB | lab(19.15, 38.78, -53.08) |
| CIE-LCH | lch(19.15, 65.74, 306.15°) |
| OKLab | oklab(32.03% 0.034 -0.1531) |
| OKLCH | oklch(32.03% 0.157 282.5) |
| XYZ | xyz(5.2391, 2.7821, 19.9955) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 3.78
Royal
#0C1793
ΔE00 4.16
Darkblue
#00008B
ΔE00 5.30
Navy
#000080
ΔE00 5.31
Dark Royal Blue
#02066F
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E197E #697E19
analogous
#19377E #2E197E #60197E
triadic
#2E197E #7E2E19 #197E2E
tetradic
#2E197E #7E1937 #697E19 #197E60
square
#2E197E #7E1937 #697E19 #197E60
split-complementary
#2E197E #7E6019 #377E19
monochromatic
#09051A #1B0F4B #2E197E #4123B1 #5A3AD8
Accessibility & contrast
On white
13.49
#2E197E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E197E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E197E
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E197E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E197E | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e197e; /* rgb */ color: rgb(46, 25, 126); /* oklch */ color: oklch(32.0% 0.157 282.5);
Tailwind
colors: {
custom: {
50: '#7259a4',
500: '#2e197e',
950: '#000000',
},
}SCSS
$custom: #2e197e; $custom-light: #7259a4; $custom-dark: #000000;
JSON
{
"hex": "#2e197e",
"rgb": {
"r": 46,
"g": 25,
"b": 126
},
"hsl": {
"h": 252.475,
"s": 66.887,
"l": 29.608
},
"oklch": {
"l": 0.32034,
"c": 0.15681,
"h": 282.5
},
"luminance": 0.02782
}Semantic roles & 50–950 ramp
primary
#2E197E
secondary
#9BB241
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F