#2E146F#2E146F
#2E146F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.143 H 287.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2E146F |
|---|---|
| RGB | rgb(46, 20, 111) |
| HSL | hsl(257, 69%, 26%) |
| HSV | hsv(257, 82%, 44%) |
| CMYK | cmyk(58.6%, 82%, 0%, 56.5%) |
| CIE-LAB | lab(16.64, 36.70, -47.56) |
| CIE-LCH | lch(16.64, 60.07, 307.65°) |
| OKLab | oklab(29.8% 0.0422 -0.1369) |
| OKLCH | oklch(29.8% 0.143 287.1) |
| XYZ | xyz(4.2453, 2.2286, 15.2423) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.46
Indigo (survey)
#380282
ΔE00 4.19
Dark Royal Blue
#02066F
ΔE00 4.79
Dark Indigo
#1F0954
ΔE00 4.96
Darkblue (survey)
#030764
ΔE00 5.03
Deep Blue
#040273
ΔE00 5.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E146F #556F14
analogous
#14276F #2E146F #5B146F
triadic
#2E146F #6F2E14 #146F2E
tetradic
#2E146F #6F1427 #556F14 #146F5B
square
#2E146F #6F1427 #556F14 #146F5B
split-complementary
#2E146F #6F5B14 #276F14
monochromatic
#0B051A #190B3B #2E146F #431DA3 #5927D7
Accessibility & contrast
On white
14.52
#2E146F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2E146F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E146F
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E146F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E146F | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102E41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2e146f; /* rgb */ color: rgb(46, 20, 111); /* oklch */ color: oklch(29.8% 0.143 287.1);
Tailwind
colors: {
custom: {
50: '#705599',
500: '#2e146f',
950: '#000000',
},
}SCSS
$custom: #2e146f; $custom-light: #705599; $custom-dark: #000000;
JSON
{
"hex": "#2e146f",
"rgb": {
"r": 46,
"g": 20,
"b": 111
},
"hsl": {
"h": 257.143,
"s": 69.466,
"l": 25.686
},
"oklch": {
"l": 0.298,
"c": 0.14327,
"h": 287.1
},
"luminance": 0.02229
}Semantic roles & 50–950 ramp
primary
#2E146F
secondary
#87A639
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E