#2E198F#2E198F
#2E198F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.177 H 279.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2E198F |
|---|---|
| RGB | rgb(46, 25, 143) |
| HSL | hsl(251, 70%, 33%) |
| HSV | hsv(251, 83%, 56%) |
| CMYK | cmyk(67.8%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(21.05, 44.04, -60.63) |
| CIE-LCH | lch(21.05, 74.93, 305.99°) |
| OKLab | oklab(33.92% 0.0287 -0.1751) |
| OKLCH | oklch(33.92% 0.177 279.3) |
| XYZ | xyz(6.4307, 3.2587, 26.2714) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.68
Indigo (survey)
#380282
ΔE00 4.08
Cobalt Blue
#030AA7
ΔE00 4.23
Royal Blue (survey)
#0504AA
ΔE00 4.65
Darkblue
#00008B
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E198F #7A8F19
analogous
#193F8F #2E198F #69198F
triadic
#2E198F #8F2E19 #198F2E
tetradic
#2E198F #8F193F #7A8F19 #198F69
square
#2E198F #8F193F #7A8F19 #198F69
split-complementary
#2E198F #8F6919 #3F8F19
monochromatic
#0C0727 #1D105B #2E198F #3F22C3 #6044DE
Accessibility & contrast
On white
12.71
#2E198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2E198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E198F
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E198F | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e198f; /* rgb */ color: rgb(46, 25, 143); /* oklch */ color: oklch(33.9% 0.177 279.3);
Tailwind
colors: {
custom: {
50: '#765ab1',
500: '#2e198f',
950: '#000000',
},
}SCSS
$custom: #2e198f; $custom-light: #765ab1; $custom-dark: #000000;
JSON
{
"hex": "#2e198f",
"rgb": {
"r": 46,
"g": 25,
"b": 143
},
"hsl": {
"h": 250.678,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.3392,
"c": 0.17741,
"h": 279.3
},
"luminance": 0.03259
}Semantic roles & 50–950 ramp
primary
#2E198F
secondary
#AABF44
accent
#ED3BCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980