#2E198E#2E198E
#2E198E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.176 H 279.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2E198E |
|---|---|
| RGB | rgb(46, 25, 142) |
| HSL | hsl(251, 70%, 33%) |
| HSV | hsv(251, 82%, 56%) |
| CMYK | cmyk(67.6%, 82.4%, 0%, 44.3%) |
| CIE-LAB | lab(20.94, 43.73, -60.19) |
| CIE-LCH | lch(20.94, 74.40, 306.00°) |
| OKLab | oklab(33.81% 0.0291 -0.1738) |
| OKLCH | oklch(33.81% 0.176 279.5) |
| XYZ | xyz(6.3553, 3.2286, 25.8742) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.71
Indigo (survey)
#380282
ΔE00 4.02
Cobalt Blue
#030AA7
ΔE00 4.34
Royal Blue (survey)
#0504AA
ΔE00 4.76
Darkblue
#00008B
ΔE00 4.78
Indigo Blue
#3A18B1
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E198E #798E19
analogous
#193F8E #2E198E #68198E
triadic
#2E198E #8E2E19 #198E2E
tetradic
#2E198E #8E193F #798E19 #198E68
square
#2E198E #8E193F #798E19 #198E68
split-complementary
#2E198E #8E6819 #3F8E19
monochromatic
#0C0726 #1D105A #2E198E #3F22C2 #5F43DE
Accessibility & contrast
On white
12.76
#2E198E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2E198E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E198E
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E198E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E198E | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e198e; /* rgb */ color: rgb(46, 25, 142); /* oklch */ color: oklch(33.8% 0.176 279.5);
Tailwind
colors: {
custom: {
50: '#765ab0',
500: '#2e198e',
950: '#000000',
},
}SCSS
$custom: #2e198e; $custom-light: #765ab0; $custom-dark: #000000;
JSON
{
"hex": "#2e198e",
"rgb": {
"r": 46,
"g": 25,
"b": 142
},
"hsl": {
"h": 250.769,
"s": 70.06,
"l": 32.745
},
"oklch": {
"l": 0.33807,
"c": 0.17622,
"h": 279.5
},
"luminance": 0.03229
}Semantic roles & 50–950 ramp
primary
#2E198E
secondary
#A9BF44
accent
#ED3BCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980