#2E187F#2E187F
#2E187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.159 H 282.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2E187F |
|---|---|
| RGB | rgb(46, 24, 127) |
| HSL | hsl(253, 68%, 30%) |
| HSV | hsv(253, 81%, 50%) |
| CMYK | cmyk(63.8%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(19.08, 39.60, -53.83) |
| CIE-LCH | lch(19.08, 66.83, 306.34°) |
| OKLab | oklab(32.02% 0.0343 -0.1552) |
| OKLCH | oklch(32.02% 0.159 282.5) |
| XYZ | xyz(5.2829, 2.7660, 20.3301) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.55
Midnight Blue
#191970
ΔE00 3.67
Royal
#0C1793
ΔE00 4.02
Darkblue
#00008B
ΔE00 5.08
Navy
#000080
ΔE00 5.12
Dark Royal Blue
#02066F
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E187F #697F18
analogous
#18357F #2E187F #62187F
triadic
#2E187F #7F2E18 #187F2E
tetradic
#2E187F #7F1835 #697F18 #187F62
square
#2E187F #7F1835 #697F18 #187F62
split-complementary
#2E187F #7F6218 #357F18
monochromatic
#09051A #1B0E4C #2E187F #4122B2 #5A38D9
Accessibility & contrast
On white
13.52
#2E187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2E187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E187F
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E187F | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2e187f; /* rgb */ color: rgb(46, 24, 127); /* oklch */ color: oklch(32.0% 0.159 282.5);
Tailwind
colors: {
custom: {
50: '#7259a5',
500: '#2e187f',
950: '#000000',
},
}SCSS
$custom: #2e187f; $custom-light: #7259a5; $custom-dark: #000000;
JSON
{
"hex": "#2e187f",
"rgb": {
"r": 46,
"g": 24,
"b": 127
},
"hsl": {
"h": 252.816,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.32019,
"c": 0.159,
"h": 282.5
},
"luminance": 0.02766
}Semantic roles & 50–950 ramp
primary
#2E187F
secondary
#9BB33F
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F