#2E1882#2E1882
#2E1882 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 281.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1882 |
|---|---|
| RGB | rgb(46, 24, 130) |
| HSL | hsl(252, 69%, 30%) |
| HSV | hsv(252, 82%, 51%) |
| CMYK | cmyk(64.6%, 81.5%, 0%, 49%) |
| CIE-LAB | lab(19.41, 40.53, -55.18) |
| CIE-LCH | lch(19.41, 68.46, 306.30°) |
| OKLab | oklab(32.35% 0.0334 -0.1592) |
| OKLCH | oklch(32.35% 0.163 281.8) |
| XYZ | xyz(5.4813, 2.8454, 21.3751) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.49
Royal
#0C1793
ΔE00 3.67
Midnight Blue
#191970
ΔE00 3.97
Darkblue
#00008B
ΔE00 4.89
Navy
#000080
ΔE00 5.08
Deep Blue
#040273
ΔE00 5.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1882 #6C8218
analogous
#183782 #2E1882 #631882
triadic
#2E1882 #822E18 #18822E
tetradic
#2E1882 #821837 #6C8218 #188263
square
#2E1882 #821837 #6C8218 #188263
split-complementary
#2E1882 #826318 #378218
monochromatic
#09051B #1C0E4E #2E1882 #4022B6 #5B3ADB
Accessibility & contrast
On white
13.38
#2E1882 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2E1882 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1882
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1882 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1882 | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2e1882; /* rgb */ color: rgb(46, 24, 130); /* oklch */ color: oklch(32.3% 0.163 281.8);
Tailwind
colors: {
custom: {
50: '#7359a7',
500: '#2e1882',
950: '#000000',
},
}SCSS
$custom: #2e1882; $custom-light: #7359a7; $custom-dark: #000000;
JSON
{
"hex": "#2e1882",
"rgb": {
"r": 46,
"g": 24,
"b": 130
},
"hsl": {
"h": 252.453,
"s": 68.831,
"l": 30.196
},
"oklch": {
"l": 0.32349,
"c": 0.16265,
"h": 281.8
},
"luminance": 0.02846
}Semantic roles & 50–950 ramp
primary
#2E1882
secondary
#9EB640
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F