#2E166F#2E166F
#2E166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.141 H 286.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2E166F |
|---|---|
| RGB | rgb(46, 22, 111) |
| HSL | hsl(256, 67%, 26%) |
| HSV | hsv(256, 80%, 44%) |
| CMYK | cmyk(58.6%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(17.00, 35.68, -46.98) |
| CIE-LCH | lch(17.00, 58.99, 307.21°) |
| OKLab | oklab(30.05% 0.0407 -0.1352) |
| OKLCH | oklch(30.05% 0.141 286.7) |
| XYZ | xyz(4.2820, 2.3021, 15.2546) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Indigo (survey)
#380282
ΔE00 4.50
Dark Royal Blue
#02066F
ΔE00 5.01
Dark Indigo
#1F0954
ΔE00 5.08
Darkblue (survey)
#030764
ΔE00 5.20
Deep Blue
#040273
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E166F #576F16
analogous
#162A6F #2E166F #5A166F
triadic
#2E166F #6F2E16 #166F2E
tetradic
#2E166F #6F162A #576F16 #166F5A
square
#2E166F #6F162A #576F16 #166F5A
split-complementary
#2E166F #6F5A16 #2A6F16
monochromatic
#0B051A #190C3C #2E166F #4320A2 #582BD5
Accessibility & contrast
On white
14.38
#2E166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#2E166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E166F
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E166F | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102F42
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2e166f; /* rgb */ color: rgb(46, 22, 111); /* oklch */ color: oklch(30.0% 0.141 286.7);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2e166f',
950: '#000000',
},
}SCSS
$custom: #2e166f; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2e166f",
"rgb": {
"r": 46,
"g": 22,
"b": 111
},
"hsl": {
"h": 256.18,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.30048,
"c": 0.14122,
"h": 286.7
},
"luminance": 0.02302
}Semantic roles & 50–950 ramp
primary
#2E166F
secondary
#89A53C
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E