#2E118E#2E118E
#2E118E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.182 H 280.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2E118E |
|---|---|
| RGB | rgb(46, 17, 142) |
| HSL | hsl(254, 79%, 31%) |
| HSV | hsv(254, 88%, 56%) |
| CMYK | cmyk(67.6%, 88%, 0%, 44.3%) |
| CIE-LAB | lab(19.78, 47.14, -62.11) |
| CIE-LCH | lch(19.78, 77.98, 307.20°) |
| OKLab | oklab(33.01% 0.0326 -0.1793) |
| OKLCH | oklch(33.01% 0.182 280.3) |
| XYZ | xyz(6.2081, 2.9342, 25.8251) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.98
Royal
#0C1793
ΔE00 2.99
Darkblue
#00008B
ΔE00 3.85
Cobalt Blue
#030AA7
ΔE00 3.95
Royal Blue (survey)
#0504AA
ΔE00 4.25
Navy
#000080
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E118E #718E11
analogous
#11328E #2E118E #6C118E
triadic
#2E118E #8E2E11 #118E2E
tetradic
#2E118E #8E1132 #718E11 #118E6C
square
#2E118E #8E1132 #718E11 #118E6C
split-complementary
#2E118E #8E6C11 #328E11
monochromatic
#0B0421 #1C0A57 #2E118E #4018C5 #5D33E7
Accessibility & contrast
On white
13.23
#2E118E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2E118E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E118E
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E118E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E118E | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003A53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e118e; /* rgb */ color: rgb(46, 17, 142); /* oklch */ color: oklch(33.0% 0.182 280.3);
Tailwind
colors: {
custom: {
50: '#7656b0',
500: '#2e118e',
950: '#000000',
},
}SCSS
$custom: #2e118e; $custom-light: #7656b0; $custom-dark: #000000;
JSON
{
"hex": "#2e118e",
"rgb": {
"r": 46,
"g": 17,
"b": 142
},
"hsl": {
"h": 253.92,
"s": 78.616,
"l": 31.176
},
"oklch": {
"l": 0.33011,
"c": 0.18219,
"h": 280.3
},
"luminance": 0.02935
}Semantic roles & 50–950 ramp
primary
#2E118E
secondary
#A2C238
accent
#F533C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880