#2E166E#2E166E
#2E166E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 287.0°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2E166E |
|---|---|
| RGB | rgb(46, 22, 110) |
| HSL | hsl(256, 67%, 26%) |
| HSV | hsv(256, 80%, 43%) |
| CMYK | cmyk(58.2%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(16.89, 35.37, -46.50) |
| CIE-LCH | lch(16.89, 58.42, 307.25°) |
| OKLab | oklab(29.94% 0.041 -0.1338) |
| OKLCH | oklch(29.94% 0.14 287) |
| XYZ | xyz(4.2273, 2.2802, 14.9662) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 4.62
Dark Indigo
#1F0954
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 5.06
Darkblue (survey)
#030764
ΔE00 5.19
Deep Blue
#040273
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E166E #566E16
analogous
#162A6E #2E166E #5A166E
triadic
#2E166E #6E2E16 #166E2E
tetradic
#2E166E #6E162A #566E16 #166E5A
square
#2E166E #6E162A #566E16 #166E5A
split-complementary
#2E166E #6E5A16 #2A6E16
monochromatic
#0B051A #190C3B #2E166E #4320A1 #592AD4
Accessibility & contrast
On white
14.42
#2E166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2E166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E166E
14.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E166E | 1.00 | 14.42 | 1.46 | 14.42 |
| #FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#112F41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e166e; /* rgb */ color: rgb(46, 22, 110); /* oklch */ color: oklch(29.9% 0.140 287.0);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2e166e',
950: '#000000',
},
}SCSS
$custom: #2e166e; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2e166e",
"rgb": {
"r": 46,
"g": 22,
"b": 110
},
"hsl": {
"h": 256.364,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.29943,
"c": 0.13997,
"h": 287
},
"luminance": 0.0228
}Semantic roles & 50–950 ramp
primary
#2E166E
secondary
#88A43C
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E