#2E197F#2E197F
#2E197F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.158 H 282.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2E197F |
|---|---|
| RGB | rgb(46, 25, 127) |
| HSL | hsl(252, 67%, 30%) |
| HSV | hsv(252, 80%, 50%) |
| CMYK | cmyk(63.8%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(19.26, 39.09, -53.53) |
| CIE-LCH | lch(19.26, 66.29, 306.14°) |
| OKLab | oklab(32.14% 0.0337 -0.1544) |
| OKLCH | oklch(32.14% 0.158 282.3) |
| XYZ | xyz(5.3039, 2.8080, 20.3371) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.60
Indigo (survey)
#380282
ΔE00 3.75
Royal
#0C1793
ΔE00 4.03
Darkblue
#00008B
ΔE00 5.23
Navy
#000080
ΔE00 5.28
Dark Royal Blue
#02066F
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E197F #6A7F19
analogous
#19377F #2E197F #61197F
triadic
#2E197F #7F2E19 #197F2E
tetradic
#2E197F #7F1937 #6A7F19 #197F61
square
#2E197F #7F1937 #6A7F19 #197F61
split-complementary
#2E197F #7F6119 #377F19
monochromatic
#09051A #1B0F4C #2E197F #4123B2 #5B3AD8
Accessibility & contrast
On white
13.45
#2E197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2E197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E197F
13.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E197F | 1.00 | 13.45 | 1.56 | 13.45 |
| #FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e197f; /* rgb */ color: rgb(46, 25, 127); /* oklch */ color: oklch(32.1% 0.158 282.3);
Tailwind
colors: {
custom: {
50: '#7259a5',
500: '#2e197f',
950: '#000000',
},
}SCSS
$custom: #2e197f; $custom-light: #7259a5; $custom-dark: #000000;
JSON
{
"hex": "#2e197f",
"rgb": {
"r": 46,
"g": 25,
"b": 127
},
"hsl": {
"h": 252.353,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.32142,
"c": 0.15804,
"h": 282.3
},
"luminance": 0.02808
}Semantic roles & 50–950 ramp
primary
#2E197F
secondary
#9CB341
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F