#2E167F#2E167F
#2E167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.161 H 282.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2E167F |
|---|---|
| RGB | rgb(46, 22, 127) |
| HSL | hsl(254, 70%, 29%) |
| HSV | hsv(254, 83%, 50%) |
| CMYK | cmyk(63.8%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(18.74, 40.59, -54.39) |
| CIE-LCH | lch(18.74, 67.86, 306.73°) |
| OKLab | oklab(31.78% 0.0356 -0.1568) |
| OKLCH | oklch(31.78% 0.161 282.8) |
| XYZ | xyz(5.2432, 2.6866, 20.3168) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.17
Midnight Blue
#191970
ΔE00 3.82
Royal
#0C1793
ΔE00 4.04
Darkblue
#00008B
ΔE00 4.80
Navy
#000080
ΔE00 4.84
Deep Blue
#040273
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E167F #677F16
analogous
#16337F #2E167F #63167F
triadic
#2E167F #7F2E16 #167F2E
tetradic
#2E167F #7F1633 #677F16 #167F63
square
#2E167F #7F1633 #677F16 #167F63
split-complementary
#2E167F #7F6316 #337F16
monochromatic
#09051A #1B0D4B #2E167F #411FB3 #5A34DC
Accessibility & contrast
On white
13.66
#2E167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2E167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E167F
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E167F | 1.00 | 13.66 | 1.54 | 13.66 |
| #FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e167f; /* rgb */ color: rgb(46, 22, 127); /* oklch */ color: oklch(31.8% 0.161 282.8);
Tailwind
colors: {
custom: {
50: '#7357a5',
500: '#2e167f',
950: '#000000',
},
}SCSS
$custom: #2e167f; $custom-light: #7357a5; $custom-dark: #000000;
JSON
{
"hex": "#2e167f",
"rgb": {
"r": 46,
"g": 22,
"b": 127
},
"hsl": {
"h": 253.714,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31784,
"c": 0.16083,
"h": 282.8
},
"luminance": 0.02687
}Semantic roles & 50–950 ramp
primary
#2E167F
secondary
#99B43D
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F