#2E164F#2E164F
#2E164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.100 H 298.9°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2E164F |
|---|---|
| RGB | rgb(46, 22, 79) |
| HSL | hsl(265, 56%, 20%) |
| HSV | hsv(265, 72%, 31%) |
| CMYK | cmyk(41.8%, 72.2%, 0%, 69%) |
| CIE-LAB | lab(13.94, 25.83, -30.65) |
| CIE-LCH | lch(13.94, 40.08, 310.12°) |
| OKLab | oklab(26.93% 0.0481 -0.0873) |
| OKLCH | oklch(26.93% 0.1 298.9) |
| XYZ | xyz(2.8246, 1.7191, 7.5786) |
| Luminance | 0.0172 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.79
Dark Purple
#35063E
ΔE00 6.03
Midnight Purple
#280137
ΔE00 6.17
Dark Violet
#34013F
ΔE00 6.21
Deep Purple
#36013F
ΔE00 6.51
Very Dark Purple
#2A0134
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E164F #374F16
analogous
#161B4F #2E164F #4B164F
triadic
#2E164F #4F2E16 #164F2E
tetradic
#2E164F #4F161B #374F16 #164F4B
square
#2E164F #4F161B #374F16 #164F4B
split-complementary
#2E164F #4F4B16 #1B4F16
monochromatic
#0E0718 #12091F #2E164F #4A237F #6631AF
Accessibility & contrast
On white
15.63
#2E164F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.34
#2E164F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E164F
15.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E164F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E164F | 1.00 | 15.63 | 1.34 | 15.63 |
| #FFFFFF | 15.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#262330
Achromatopsia (no color)
#232323
Design tokens & code
CSS
--color: #2e164f; /* rgb */ color: rgb(46, 22, 79); /* oklch */ color: oklch(26.9% 0.100 298.9);
Tailwind
colors: {
custom: {
50: '#6a5581',
500: '#2e164f',
950: '#000000',
},
}SCSS
$custom: #2e164f; $custom-light: #6a5581; $custom-dark: #000000;
JSON
{
"hex": "#2e164f",
"rgb": {
"r": 46,
"g": 22,
"b": 79
},
"hsl": {
"h": 265.263,
"s": 56.436,
"l": 19.804
},
"oklch": {
"l": 0.26934,
"c": 0.0997,
"h": 298.9
},
"luminance": 0.01719
}Semantic roles & 50–950 ramp
primary
#2E164F
secondary
#66863A
accent
#E048A0
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C