#2E1267#2E1267
#2E1267 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.136 H 290.0°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1267 |
|---|---|
| RGB | rgb(46, 18, 103) |
| HSL | hsl(260, 70%, 24%) |
| HSV | hsv(260, 83%, 40%) |
| CMYK | cmyk(55.3%, 82.5%, 0%, 59.6%) |
| CIE-LAB | lab(15.45, 35.27, -44.30) |
| CIE-LCH | lch(15.45, 56.63, 308.53°) |
| OKLab | oklab(28.71% 0.0464 -0.1273) |
| OKLCH | oklch(28.71% 0.136 290) |
| XYZ | xyz(3.7905, 1.9926, 13.0142) |
| Luminance | 0.0199 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.79
Midnight Blue
#191970
ΔE00 4.18
Darkblue (survey)
#030764
ΔE00 4.99
Indigo (survey)
#380282
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.20
Deep Blue
#040273
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1267 #4B6712
analogous
#122067 #2E1267 #581267
triadic
#2E1267 #672E12 #12672E
tetradic
#2E1267 #671220 #4B6712 #126758
square
#2E1267 #671220 #4B6712 #126758
split-complementary
#2E1267 #675812 #206712
monochromatic
#0C051A #170933 #2E1267 #451B9B #5D24CF
Accessibility & contrast
On white
15.02
#2E1267 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2E1267 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1267
15.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1267 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1267 | 1.00 | 15.02 | 1.40 | 15.02 |
| #FFFFFF | 15.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#192A3C
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2e1267; /* rgb */ color: rgb(46, 18, 103); /* oklch */ color: oklch(28.7% 0.136 290.0);
Tailwind
colors: {
custom: {
50: '#6e5493',
500: '#2e1267',
950: '#000000',
},
}SCSS
$custom: #2e1267; $custom-light: #6e5493; $custom-dark: #000000;
JSON
{
"hex": "#2e1267",
"rgb": {
"r": 46,
"g": 18,
"b": 103
},
"hsl": {
"h": 259.765,
"s": 70.248,
"l": 23.725
},
"oklch": {
"l": 0.2871,
"c": 0.13553,
"h": 290
},
"luminance": 0.01993
}Semantic roles & 50–950 ramp
primary
#2E1267
secondary
#7C9F36
accent
#ED3BB2
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E