#2E1362#2E1362
#2E1362 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.128 H 291.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1362 |
|---|---|
| RGB | rgb(46, 19, 98) |
| HSL | hsl(261, 68%, 23%) |
| HSV | hsv(261, 81%, 38%) |
| CMYK | cmyk(53.1%, 80.6%, 0%, 61.6%) |
| CIE-LAB | lab(15.11, 33.27, -41.55) |
| CIE-LCH | lch(15.11, 53.23, 308.68°) |
| OKLab | oklab(28.31% 0.0471 -0.1193) |
| OKLCH | oklch(28.31% 0.128 291.5) |
| XYZ | xyz(3.5636, 1.9283, 11.7373) |
| Luminance | 0.0193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.33
Midnight Blue
#191970
ΔE00 4.66
Darkblue (survey)
#030764
ΔE00 5.39
Dark Royal Blue
#02066F
ΔE00 5.87
Dark Blue
#00035B
ΔE00 5.93
Indigo (survey)
#380282
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1362 #476213
analogous
#132062 #2E1362 #551362
triadic
#2E1362 #622E13 #13622E
tetradic
#2E1362 #621320 #476213 #136255
square
#2E1362 #621320 #476213 #136255
split-complementary
#2E1362 #625513 #206213
monochromatic
#0C051A #16092F #2E1362 #461D95 #5E27C9
Accessibility & contrast
On white
15.16
#2E1362 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2E1362 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1362
15.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1362 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1362 | 1.00 | 15.16 | 1.39 | 15.16 |
| #FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#1D293A
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2e1362; /* rgb */ color: rgb(46, 19, 98); /* oklch */ color: oklch(28.3% 0.128 291.5);
Tailwind
colors: {
custom: {
50: '#6d548f',
500: '#2e1362',
950: '#000000',
},
}SCSS
$custom: #2e1362; $custom-light: #6d548f; $custom-dark: #000000;
JSON
{
"hex": "#2e1362",
"rgb": {
"r": 46,
"g": 19,
"b": 98
},
"hsl": {
"h": 260.506,
"s": 67.521,
"l": 22.941
},
"oklch": {
"l": 0.28313,
"c": 0.12829,
"h": 291.5
},
"luminance": 0.01928
}Semantic roles & 50–950 ramp
primary
#2E1362
secondary
#789A37
accent
#EA3DAF
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D