#2E168E#2E168E
#2E168E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.179 H 279.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2E168E |
|---|---|
| RGB | rgb(46, 22, 142) |
| HSL | hsl(252, 73%, 32%) |
| HSV | hsv(252, 85%, 56%) |
| CMYK | cmyk(67.6%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(20.47, 45.10, -60.97) |
| CIE-LCH | lch(20.47, 75.84, 306.49°) |
| OKLab | oklab(33.48% 0.0305 -0.176) |
| OKLCH | oklch(33.48% 0.179 279.8) |
| XYZ | xyz(6.2946, 3.1071, 25.8540) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 3.57
Cobalt Blue
#030AA7
ΔE00 4.13
Darkblue
#00008B
ΔE00 4.38
Royal Blue (survey)
#0504AA
ΔE00 4.51
Ultramarine
#2000B1
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E168E #768E16
analogous
#163A8E #2E168E #6A168E
triadic
#2E168E #8E2E16 #168E2E
tetradic
#2E168E #8E163A #768E16 #168E6A
square
#2E168E #8E163A #768E16 #168E6A
split-complementary
#2E168E #8E6A16 #3A8E16
monochromatic
#0C0624 #1D0E59 #2E168E #3F1EC3 #5E3DE1
Accessibility & contrast
On white
12.95
#2E168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2E168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E168E
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E168E | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e168e; /* rgb */ color: rgb(46, 22, 142); /* oklch */ color: oklch(33.5% 0.179 279.8);
Tailwind
colors: {
custom: {
50: '#7659b0',
500: '#2e168e',
950: '#000000',
},
}SCSS
$custom: #2e168e; $custom-light: #7659b0; $custom-dark: #000000;
JSON
{
"hex": "#2e168e",
"rgb": {
"r": 46,
"g": 22,
"b": 142
},
"hsl": {
"h": 252,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.33483,
"c": 0.17864,
"h": 279.8
},
"luminance": 0.03108
}Semantic roles & 50–950 ramp
primary
#2E168E
secondary
#A7C13F
accent
#F038CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980