#2E1875#2E1875
#2E1875 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.147 H 284.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1875 |
|---|---|
| RGB | rgb(46, 24, 117) |
| HSL | hsl(254, 66%, 28%) |
| HSV | hsv(254, 79%, 46%) |
| CMYK | cmyk(60.7%, 79.5%, 0%, 54.1%) |
| CIE-LAB | lab(18.00, 36.49, -49.21) |
| CIE-LCH | lch(18.00, 61.26, 306.56°) |
| OKLab | oklab(30.94% 0.0374 -0.1418) |
| OKLCH | oklch(30.94% 0.147 284.8) |
| XYZ | xyz(4.6633, 2.5182, 17.0665) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Indigo (survey)
#380282
ΔE00 4.19
Dark Royal Blue
#02066F
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.33
Royal
#0C1793
ΔE00 5.42
Darkblue (survey)
#030764
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1875 #5F7518
analogous
#183075 #2E1875 #5D1875
triadic
#2E1875 #752E18 #18752E
tetradic
#2E1875 #751830 #5F7518 #18755D
square
#2E1875 #751830 #5F7518 #18755D
split-complementary
#2E1875 #755D18 #307518
monochromatic
#0A0519 #1A0E42 #2E1875 #4222A8 #5932D5
Accessibility & contrast
On white
13.97
#2E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2E1875 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1875
13.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1875 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1875 | 1.00 | 13.97 | 1.50 | 13.97 |
| #FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#063346
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1875; /* rgb */ color: rgb(46, 24, 117); /* oklch */ color: oklch(30.9% 0.147 284.8);
Tailwind
colors: {
custom: {
50: '#70589e',
500: '#2e1875',
950: '#000000',
},
}SCSS
$custom: #2e1875; $custom-light: #70589e; $custom-dark: #000000;
JSON
{
"hex": "#2e1875",
"rgb": {
"r": 46,
"g": 24,
"b": 117
},
"hsl": {
"h": 254.194,
"s": 65.957,
"l": 27.647
},
"oklch": {
"l": 0.30941,
"c": 0.14662,
"h": 284.8
},
"luminance": 0.02518
}Semantic roles & 50–950 ramp
primary
#2E1875
secondary
#91AA3F
accent
#E93FC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E