#2E188E#2E188E
#2E188E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.177 H 279.6°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2E188E |
|---|---|
| RGB | rgb(46, 24, 142) |
| HSL | hsl(251, 71%, 33%) |
| HSV | hsv(251, 83%, 56%) |
| CMYK | cmyk(67.6%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(20.78, 44.20, -60.46) |
| CIE-LCH | lch(20.78, 74.89, 306.17°) |
| OKLab | oklab(33.7% 0.0295 -0.1746) |
| OKLCH | oklch(33.7% 0.177 279.6) |
| XYZ | xyz(6.3343, 3.1866, 25.8672) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.71
Indigo (survey)
#380282
ΔE00 3.86
Cobalt Blue
#030AA7
ΔE00 4.26
Darkblue
#00008B
ΔE00 4.64
Royal Blue (survey)
#0504AA
ΔE00 4.67
Indigo Blue
#3A18B1
ΔE00 5.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E188E #788E18
analogous
#183D8E #2E188E #69188E
triadic
#2E188E #8E2E18 #188E2E
tetradic
#2E188E #8E183D #788E18 #188E69
square
#2E188E #8E183D #788E18 #188E69
split-complementary
#2E188E #8E6918 #3D8E18
monochromatic
#0C0625 #1D0F5A #2E188E #3F21C2 #5F41DF
Accessibility & contrast
On white
12.83
#2E188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2E188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E188E
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E188E | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e188e; /* rgb */ color: rgb(46, 24, 142); /* oklch */ color: oklch(33.7% 0.177 279.6);
Tailwind
colors: {
custom: {
50: '#765ab0',
500: '#2e188e',
950: '#000000',
},
}SCSS
$custom: #2e188e; $custom-light: #765ab0; $custom-dark: #000000;
JSON
{
"hex": "#2e188e",
"rgb": {
"r": 46,
"g": 24,
"b": 142
},
"hsl": {
"h": 251.186,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.33695,
"c": 0.17705,
"h": 279.6
},
"luminance": 0.03187
}Semantic roles & 50–950 ramp
primary
#2E188E
secondary
#A8C042
accent
#EE3ACC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980