#2E1876#2E1876
#2E1876 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.148 H 284.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1876 |
|---|---|
| RGB | rgb(46, 24, 118) |
| HSL | hsl(254, 66%, 28%) |
| HSV | hsv(254, 80%, 46%) |
| CMYK | cmyk(61%, 79.7%, 0%, 53.7%) |
| CIE-LAB | lab(18.11, 36.80, -49.68) |
| CIE-LCH | lch(18.11, 61.83, 306.53°) |
| OKLab | oklab(31.05% 0.0371 -0.1431) |
| OKLCH | oklch(31.05% 0.148 284.5) |
| XYZ | xyz(4.7224, 2.5418, 17.3778) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.07
Indigo (survey)
#380282
ΔE00 4.09
Dark Royal Blue
#02066F
ΔE00 5.08
Royal
#0C1793
ΔE00 5.27
Deep Blue
#040273
ΔE00 5.30
Navy
#000080
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1876 #607618
analogous
#183176 #2E1876 #5D1876
triadic
#2E1876 #762E18 #18762E
tetradic
#2E1876 #761831 #607618 #18765D
square
#2E1876 #761831 #607618 #18765D
split-complementary
#2E1876 #765D18 #317618
monochromatic
#0A0519 #1A0E43 #2E1876 #4222A9 #5933D5
Accessibility & contrast
On white
13.92
#2E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2E1876 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1876
13.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1876 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1876 | 1.00 | 13.92 | 1.51 | 13.92 |
| #FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#043346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1876; /* rgb */ color: rgb(46, 24, 118); /* oklch */ color: oklch(31.0% 0.148 284.5);
Tailwind
colors: {
custom: {
50: '#71589e',
500: '#2e1876',
950: '#000000',
},
}SCSS
$custom: #2e1876; $custom-light: #71589e; $custom-dark: #000000;
JSON
{
"hex": "#2e1876",
"rgb": {
"r": 46,
"g": 24,
"b": 118
},
"hsl": {
"h": 254.043,
"s": 66.197,
"l": 27.843
},
"oklch": {
"l": 0.31047,
"c": 0.14787,
"h": 284.5
},
"luminance": 0.02542
}Semantic roles & 50–950 ramp
primary
#2E1876
secondary
#92AB3F
accent
#E93FC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E