#2E156E#2E156E
#2E156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.141 H 287.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2E156E |
|---|---|
| RGB | rgb(46, 21, 110) |
| HSL | hsl(257, 68%, 26%) |
| HSV | hsv(257, 81%, 43%) |
| CMYK | cmyk(58.2%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(16.71, 35.89, -46.80) |
| CIE-LCH | lch(16.71, 58.98, 307.48°) |
| OKLab | oklab(29.82% 0.0418 -0.1347) |
| OKLCH | oklch(29.82% 0.141 287.2) |
| XYZ | xyz(4.2085, 2.2427, 14.9600) |
| Luminance | 0.0224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.39
Indigo (survey)
#380282
ΔE00 4.47
Dark Indigo
#1F0954
ΔE00 4.88
Dark Royal Blue
#02066F
ΔE00 4.94
Darkblue (survey)
#030764
ΔE00 5.10
Deep Blue
#040273
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E156E #556E15
analogous
#15286E #2E156E #5A156E
triadic
#2E156E #6E2E15 #156E2E
tetradic
#2E156E #6E1528 #556E15 #156E5A
square
#2E156E #6E1528 #556E15 #156E5A
split-complementary
#2E156E #6E5A15 #286E15
monochromatic
#0B051A #190B3B #2E156E #431FA1 #5929D5
Accessibility & contrast
On white
14.50
#2E156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2E156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E156E
14.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E156E | 1.00 | 14.50 | 1.45 | 14.50 |
| #FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#122E41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e156e; /* rgb */ color: rgb(46, 21, 110); /* oklch */ color: oklch(29.8% 0.141 287.2);
Tailwind
colors: {
custom: {
50: '#6f5699',
500: '#2e156e',
950: '#000000',
},
}SCSS
$custom: #2e156e; $custom-light: #6f5699; $custom-dark: #000000;
JSON
{
"hex": "#2e156e",
"rgb": {
"r": 46,
"g": 21,
"b": 110
},
"hsl": {
"h": 256.854,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.29816,
"c": 0.14102,
"h": 287.2
},
"luminance": 0.02243
}Semantic roles & 50–950 ramp
primary
#2E156E
secondary
#87A43A
accent
#EB3DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E