#2E1851#2E1851
#2E1851 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.099 H 297.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1851 |
|---|---|
| RGB | rgb(46, 24, 81) |
| HSL | hsl(263, 54%, 21%) |
| HSV | hsv(263, 70%, 32%) |
| CMYK | cmyk(43.2%, 70.4%, 0%, 68.2%) |
| CIE-LAB | lab(14.56, 25.21, -31.01) |
| CIE-LCH | lch(14.56, 39.97, 309.10°) |
| OKLab | oklab(27.43% 0.0453 -0.0884) |
| OKLCH | oklch(27.43% 0.099 297.1) |
| XYZ | xyz(2.9382, 1.8281, 7.9811) |
| Luminance | 0.0183 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.89
Dark Purple
#35063E
ΔE00 6.63
Midnight Purple
#280137
ΔE00 6.80
Dark Violet
#34013F
ΔE00 6.83
Deep Purple
#36013F
ΔE00 7.12
Night Blue
#040348
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1851 #3B5118
analogous
#181E51 #2E1851 #4A1851
triadic
#2E1851 #512E18 #18512E
tetradic
#2E1851 #51181E #3B5118 #18514A
square
#2E1851 #51181E #3B5118 #18514A
split-complementary
#2E1851 #514A18 #1E5118
monochromatic
#0D0718 #130A22 #2E1851 #492680 #6434AF
Accessibility & contrast
On white
15.38
#2E1851 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2E1851 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1851
15.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1851 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1851 | 1.00 | 15.38 | 1.37 | 15.38 |
| #FFFFFF | 15.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#252532
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2e1851; /* rgb */ color: rgb(46, 24, 81); /* oklch */ color: oklch(27.4% 0.099 297.1);
Tailwind
colors: {
custom: {
50: '#6a5682',
500: '#2e1851',
950: '#000000',
},
}SCSS
$custom: #2e1851; $custom-light: #6a5682; $custom-dark: #000000;
JSON
{
"hex": "#2e1851",
"rgb": {
"r": 46,
"g": 24,
"b": 81
},
"hsl": {
"h": 263.158,
"s": 54.286,
"l": 20.588
},
"oklch": {
"l": 0.27434,
"c": 0.09931,
"h": 297.1
},
"luminance": 0.01828
}Semantic roles & 50–950 ramp
primary
#2E1851
secondary
#6B883D
accent
#DE4AA5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C