#2E1062#2E1062
#2E1062 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.132 H 292.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1062 |
|---|---|
| RGB | rgb(46, 16, 98) |
| HSL | hsl(262, 72%, 22%) |
| HSV | hsv(262, 84%, 38%) |
| CMYK | cmyk(53.1%, 83.7%, 0%, 61.6%) |
| CIE-LAB | lab(14.59, 34.76, -42.41) |
| CIE-LCH | lch(14.59, 54.84, 309.34°) |
| OKLab | oklab(27.95% 0.0497 -0.1218) |
| OKLCH | oklch(27.95% 0.132 292.2) |
| XYZ | xyz(3.5160, 1.8331, 11.7215) |
| Luminance | 0.0183 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.15
Midnight Blue
#191970
ΔE00 4.91
Darkblue (survey)
#030764
ΔE00 5.18
Dark Royal Blue
#02066F
ΔE00 5.62
Dark Blue
#00035B
ΔE00 5.67
Indigo (survey)
#380282
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1062 #446210
analogous
#101B62 #2E1062 #571062
triadic
#2E1062 #622E10 #10622E
tetradic
#2E1062 #62101B #446210 #106257
square
#2E1062 #62101B #446210 #106257
split-complementary
#2E1062 #625710 #1B6210
monochromatic
#0C041A #15072D #2E1062 #471997 #5F21CB
Accessibility & contrast
On white
15.37
#2E1062 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2E1062 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1062
15.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1062 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1062 | 1.00 | 15.37 | 1.37 | 15.37 |
| #FFFFFF | 15.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#1D2739
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2e1062; /* rgb */ color: rgb(46, 16, 98); /* oklch */ color: oklch(28.0% 0.132 292.2);
Tailwind
colors: {
custom: {
50: '#6d528f',
500: '#2e1062',
950: '#000000',
},
}SCSS
$custom: #2e1062; $custom-light: #6d528f; $custom-dark: #000000;
JSON
{
"hex": "#2e1062",
"rgb": {
"r": 46,
"g": 16,
"b": 98
},
"hsl": {
"h": 261.951,
"s": 71.93,
"l": 22.353
},
"oklch": {
"l": 0.2795,
"c": 0.13153,
"h": 292.2
},
"luminance": 0.01833
}Semantic roles & 50–950 ramp
primary
#2E1062
secondary
#759B33
accent
#EF39AC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D