#2E1578#2E1578

#2E1578 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.153 H 284.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2E1578
RGBrgb(46, 21, 120)
HSLhsl(255, 70%, 28%)
HSVhsv(255, 83%, 47%)
CMYKcmyk(61.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.80, 38.94, -51.48)
CIE-LCHlch(17.80, 64.55, 307.10°)
OKLaboklab(30.9% 0.0385 -0.1484)
OKLCHoklch(30.9% 0.153 284.6)
XYZxyz(4.7840, 2.4729, 17.9909)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1578 #5F7815
analogous
#152D78 #2E1578 #601578
triadic
#2E1578 #782E15 #15782E
tetradic
#2E1578 #78152D #5F7815 #157860
square
#2E1578 #78152D #5F7815 #157860
split-complementary
#2E1578 #786015 #2D7815
monochromatic
#0A051A #1A0C44 #2E1578 #421EAC #592DDA

Accessibility & contrast

On white

14.05
#2E1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1578
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1578#FFFFFF#000000##FFFFFF
##2E15781.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1578;
/* rgb */ color: rgb(46, 21, 120);
/* oklch */ color: oklch(30.9% 0.153 284.6);
Tailwind
colors: {
  custom: {
    50: '#7156a0',
    500: '#2e1578',
    950: '#000000',
  },
}
SCSS
$custom: #2e1578;
$custom-light: #7156a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1578",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 255.152,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30895,
    "c": 0.15328,
    "h": 284.6
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#2E1578
secondary
#91AE3B
accent
#ED3BC0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1578

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E1578 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva