#2E1584#2E1584

#2E1584 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.168 H 281.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2E1584
RGBrgb(46, 21, 132)
HSLhsl(254, 73%, 30%)
HSVhsv(254, 84%, 52%)
CMYKcmyk(65.2%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.15, 42.56, -56.88)
CIE-LCHlch(19.15, 71.04, 306.81°)
OKLaboklab(32.24% 0.0344 -0.1641)
OKLCHoklch(32.24% 0.168 281.8)
XYZxyz(5.5584, 2.7827, 22.0695)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1584 #6B8415
analogous
#153384 #2E1584 #661584
triadic
#2E1584 #842E15 #15842E
tetradic
#2E1584 #841533 #6B8415 #158466
square
#2E1584 #841533 #6B8415 #158466
split-complementary
#2E1584 #846615 #338415
monochromatic
#09041A #1C0D4F #2E1584 #401DB9 #5B35DF

Accessibility & contrast

On white

13.49
#2E1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1584
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1584#FFFFFF#000000##FFFFFF
##2E15841.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1584;
/* rgb */ color: rgb(46, 21, 132);
/* oklch */ color: oklch(32.2% 0.168 281.8);
Tailwind
colors: {
  custom: {
    50: '#7457a9',
    500: '#2e1584',
    950: '#000000',
  },
}
SCSS
$custom: #2e1584;
$custom-light: #7457a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1584",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 253.514,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.32235,
    "c": 0.16766,
    "h": 281.8
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#2E1584
secondary
#9DB93C
accent
#EF39C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1584

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

Preview Lab → · Contrast checker → · Palette generator →

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