#2E196E#2E196E
#2E196E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.137 H 286.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2E196E |
|---|---|
| RGB | rgb(46, 25, 110) |
| HSL | hsl(255, 63%, 26%) |
| HSV | hsv(255, 77%, 43%) |
| CMYK | cmyk(58.2%, 77.3%, 0%, 56.9%) |
| CIE-LAB | lab(17.47, 33.74, -45.56) |
| CIE-LCH | lch(17.47, 56.69, 306.52°) |
| OKLab | oklab(30.35% 0.0385 -0.1311) |
| OKLCH | oklch(30.35% 0.137 286.4) |
| XYZ | xyz(4.2880, 2.4017, 14.9864) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Indigo (survey)
#380282
ΔE00 5.16
Dark Indigo
#1F0954
ΔE00 5.22
Dark Royal Blue
#02066F
ΔE00 5.47
Darkblue (survey)
#030764
ΔE00 5.54
Deep Blue
#040273
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E196E #596E19
analogous
#192F6E #2E196E #59196E
triadic
#2E196E #6E2E19 #196E2E
tetradic
#2E196E #6E192F #596E19 #196E59
square
#2E196E #6E192F #596E19 #196E59
split-complementary
#2E196E #6E5919 #2F6E19
monochromatic
#0A0619 #190E3C #2E196E #4324A0 #5831D0
Accessibility & contrast
On white
14.19
#2E196E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2E196E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E196E
14.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E196E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E196E | 1.00 | 14.19 | 1.48 | 14.19 |
| #FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#113042
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e196e; /* rgb */ color: rgb(46, 25, 110); /* oklch */ color: oklch(30.3% 0.137 286.4);
Tailwind
colors: {
custom: {
50: '#6f5898',
500: '#2e196e',
950: '#000000',
},
}SCSS
$custom: #2e196e; $custom-light: #6f5898; $custom-dark: #000000;
JSON
{
"hex": "#2e196e",
"rgb": {
"r": 46,
"g": 25,
"b": 110
},
"hsl": {
"h": 254.824,
"s": 62.963,
"l": 26.471
},
"oklch": {
"l": 0.30346,
"c": 0.13664,
"h": 286.4
},
"luminance": 0.02402
}Semantic roles & 50–950 ramp
primary
#2E196E
secondary
#8BA33F
accent
#E642BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E