#2E1970#2E1970
#2E1970 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.139 H 285.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1970 |
|---|---|
| RGB | rgb(46, 25, 112) |
| HSL | hsl(254, 64%, 27%) |
| HSV | hsv(254, 78%, 44%) |
| CMYK | cmyk(58.9%, 77.7%, 0%, 56.1%) |
| CIE-LAB | lab(17.67, 34.37, -46.52) |
| CIE-LCH | lch(17.67, 57.84, 306.46°) |
| OKLab | oklab(30.55% 0.038 -0.1339) |
| OKLCH | oklch(30.55% 0.139 285.8) |
| XYZ | xyz(4.3981, 2.4457, 15.5664) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.99
Indigo (survey)
#380282
ΔE00 4.91
Dark Royal Blue
#02066F
ΔE00 5.36
Dark Indigo
#1F0954
ΔE00 5.47
Darkblue (survey)
#030764
ΔE00 5.55
Deep Blue
#040273
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1970 #5B7019
analogous
#192F70 #2E1970 #5A1970
triadic
#2E1970 #702E19 #19702E
tetradic
#2E1970 #70192F #5B7019 #19705A
square
#2E1970 #70192F #5B7019 #19705A
split-complementary
#2E1970 #705A19 #2F7019
monochromatic
#0A0619 #190E3E #2E1970 #4324A2 #5932D1
Accessibility & contrast
On white
14.10
#2E1970 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2E1970 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1970
14.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1970 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1970 | 1.00 | 14.10 | 1.49 | 14.10 |
| #FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#0F3143
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e1970; /* rgb */ color: rgb(46, 25, 112); /* oklch */ color: oklch(30.6% 0.139 285.8);
Tailwind
colors: {
custom: {
50: '#6f589a',
500: '#2e1970',
950: '#000000',
},
}SCSS
$custom: #2e1970; $custom-light: #6f589a; $custom-dark: #000000;
JSON
{
"hex": "#2e1970",
"rgb": {
"r": 46,
"g": 25,
"b": 112
},
"hsl": {
"h": 254.483,
"s": 63.504,
"l": 26.863
},
"oklch": {
"l": 0.30552,
"c": 0.1392,
"h": 285.8
},
"luminance": 0.02446
}Semantic roles & 50–950 ramp
primary
#2E1970
secondary
#8DA540
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E