#2E1265#2E1265
#2E1265 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.133 H 290.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1265 |
|---|---|
| RGB | rgb(46, 18, 101) |
| HSL | hsl(260, 70%, 23%) |
| HSV | hsv(260, 82%, 40%) |
| CMYK | cmyk(54.5%, 82.2%, 0%, 60.4%) |
| CIE-LAB | lab(15.24, 34.68, -43.32) |
| CIE-LCH | lch(15.24, 55.49, 308.67°) |
| OKLab | oklab(28.5% 0.047 -0.1245) |
| OKLCH | oklch(28.5% 0.133 290.7) |
| XYZ | xyz(3.6913, 1.9529, 12.4918) |
| Luminance | 0.0195 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.56
Midnight Blue
#191970
ΔE00 4.38
Darkblue (survey)
#030764
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 5.41
Indigo (survey)
#380282
ΔE00 5.42
Dark Blue
#00035B
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1265 #496512
analogous
#121F65 #2E1265 #571265
triadic
#2E1265 #652E12 #12652E
tetradic
#2E1265 #65121F #496512 #126557
square
#2E1265 #65121F #496512 #126557
split-complementary
#2E1265 #655712 #1F6512
monochromatic
#0C051A #160931 #2E1265 #461B99 #5D25CD
Accessibility & contrast
On white
15.10
#2E1265 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2E1265 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1265
15.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1265 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1265 | 1.00 | 15.10 | 1.39 | 15.10 |
| #FFFFFF | 15.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#1A2A3B
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2e1265; /* rgb */ color: rgb(46, 18, 101); /* oklch */ color: oklch(28.5% 0.133 290.7);
Tailwind
colors: {
custom: {
50: '#6e5492',
500: '#2e1265',
950: '#000000',
},
}SCSS
$custom: #2e1265; $custom-light: #6e5492; $custom-dark: #000000;
JSON
{
"hex": "#2e1265",
"rgb": {
"r": 46,
"g": 18,
"b": 101
},
"hsl": {
"h": 260.241,
"s": 69.748,
"l": 23.333
},
"oklch": {
"l": 0.285,
"c": 0.13309,
"h": 290.7
},
"luminance": 0.01953
}Semantic roles & 50–950 ramp
primary
#2E1265
secondary
#7A9D36
accent
#ED3BB1
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E