#2E157F#2E157F
#2E157F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.162 H 282.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2E157F |
|---|---|
| RGB | rgb(46, 21, 127) |
| HSL | hsl(254, 72%, 29%) |
| HSV | hsv(254, 83%, 50%) |
| CMYK | cmyk(63.8%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(18.58, 41.06, -54.65) |
| CIE-LCH | lch(18.58, 68.36, 306.92°) |
| OKLab | oklab(31.67% 0.0361 -0.1576) |
| OKLCH | oklch(31.67% 0.162 282.9) |
| XYZ | xyz(5.2245, 2.6491, 20.3106) |
| Luminance | 0.0265 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.00
Midnight Blue
#191970
ΔE00 3.91
Royal
#0C1793
ΔE00 4.06
Darkblue
#00008B
ΔE00 4.68
Navy
#000080
ΔE00 4.70
Deep Blue
#040273
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E157F #667F15
analogous
#15317F #2E157F #63157F
triadic
#2E157F #7F2E15 #157F2E
tetradic
#2E157F #7F1531 #667F15 #157F63
square
#2E157F #7F1531 #667F15 #157F63
split-complementary
#2E157F #7F6315 #317F15
monochromatic
#0A041A #1B0C4A #2E157F #411EB4 #5A31DD
Accessibility & contrast
On white
13.73
#2E157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2E157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E157F
13.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E157F | 1.00 | 13.73 | 1.53 | 13.73 |
| #FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2e157f; /* rgb */ color: rgb(46, 21, 127); /* oklch */ color: oklch(31.7% 0.162 282.9);
Tailwind
colors: {
custom: {
50: '#7357a5',
500: '#2e157f',
950: '#000000',
},
}SCSS
$custom: #2e157f; $custom-light: #7357a5; $custom-dark: #000000;
JSON
{
"hex": "#2e157f",
"rgb": {
"r": 46,
"g": 21,
"b": 127
},
"hsl": {
"h": 254.151,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.31671,
"c": 0.16171,
"h": 282.9
},
"luminance": 0.02649
}Semantic roles & 50–950 ramp
primary
#2E157F
secondary
#98B43C
accent
#EE39C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F