#2E167E#2E167E
#2E167E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.160 H 283.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2E167E |
|---|---|
| RGB | rgb(46, 22, 126) |
| HSL | hsl(254, 70%, 29%) |
| HSV | hsv(254, 83%, 49%) |
| CMYK | cmyk(63.5%, 82.5%, 0%, 50.6%) |
| CIE-LAB | lab(18.63, 40.28, -53.94) |
| CIE-LCH | lch(18.63, 67.32, 306.75°) |
| OKLab | oklab(31.67% 0.0359 -0.1555) |
| OKLCH | oklch(31.67% 0.16 283) |
| XYZ | xyz(5.1783, 2.6607, 19.9753) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.21
Midnight Blue
#191970
ΔE00 3.74
Royal
#0C1793
ΔE00 4.16
Navy
#000080
ΔE00 4.86
Darkblue
#00008B
ΔE00 4.88
Deep Blue
#040273
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E167E #667E16
analogous
#16327E #2E167E #62167E
triadic
#2E167E #7E2E16 #167E2E
tetradic
#2E167E #7E1632 #667E16 #167E62
square
#2E167E #7E1632 #667E16 #167E62
split-complementary
#2E167E #7E6216 #327E16
monochromatic
#0A051A #1B0D4A #2E167E #411FB2 #5A33DB
Accessibility & contrast
On white
13.71
#2E167E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2E167E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E167E
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E167E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E167E | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e167e; /* rgb */ color: rgb(46, 22, 126); /* oklch */ color: oklch(31.7% 0.160 283.0);
Tailwind
colors: {
custom: {
50: '#7257a4',
500: '#2e167e',
950: '#000000',
},
}SCSS
$custom: #2e167e; $custom-light: #7257a4; $custom-dark: #000000;
JSON
{
"hex": "#2e167e",
"rgb": {
"r": 46,
"g": 22,
"b": 126
},
"hsl": {
"h": 253.846,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.31673,
"c": 0.15962,
"h": 283
},
"luminance": 0.02661
}Semantic roles & 50–950 ramp
primary
#2E167E
secondary
#98B33D
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F