#2E1853#2E1853
#2E1853 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.102 H 296.2°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1853 |
|---|---|
| RGB | rgb(46, 24, 83) |
| HSL | hsl(262, 55%, 21%) |
| HSV | hsv(262, 71%, 33%) |
| CMYK | cmyk(44.6%, 71.1%, 0%, 67.5%) |
| CIE-LAB | lab(14.73, 25.82, -32.10) |
| CIE-LCH | lch(14.73, 41.20, 308.81°) |
| OKLab | oklab(27.61% 0.045 -0.0916) |
| OKLCH | oklch(27.61% 0.102 296.2) |
| XYZ | xyz(3.0143, 1.8586, 8.3819) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 4.59
Dark Purple
#35063E
ΔE00 6.92
Dark Violet
#34013F
ΔE00 7.05
Midnight Purple
#280137
ΔE00 7.08
Midnight Blue
#191970
ΔE00 7.28
Night Blue
#040348
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1853 #3D5318
analogous
#181F53 #2E1853 #4B1853
triadic
#2E1853 #532E18 #18532E
tetradic
#2E1853 #53181F #3D5318 #18534B
square
#2E1853 #53181F #3D5318 #18534B
split-complementary
#2E1853 #534B18 #1F5318
monochromatic
#0D0718 #140A24 #2E1853 #482682 #6333B2
Accessibility & contrast
On white
15.31
#2E1853 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2E1853 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1853
15.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1853 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1853 | 1.00 | 15.31 | 1.37 | 15.31 |
| #FFFFFF | 15.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#252633
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2e1853; /* rgb */ color: rgb(46, 24, 83); /* oklch */ color: oklch(27.6% 0.102 296.2);
Tailwind
colors: {
custom: {
50: '#6a5684',
500: '#2e1853',
950: '#000000',
},
}SCSS
$custom: #2e1853; $custom-light: #6a5684; $custom-dark: #000000;
JSON
{
"hex": "#2e1853",
"rgb": {
"r": 46,
"g": 24,
"b": 83
},
"hsl": {
"h": 262.373,
"s": 55.14,
"l": 20.98
},
"oklch": {
"l": 0.27609,
"c": 0.10207,
"h": 296.2
},
"luminance": 0.01859
}Semantic roles & 50–950 ramp
primary
#2E1853
secondary
#6D8A3D
accent
#DE49A7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C