#2E1581#2E1581

#2E1581 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.164 H 282.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2E1581
RGBrgb(46, 21, 129)
HSLhsl(254, 72%, 29%)
HSVhsv(254, 84%, 51%)
CMYKcmyk(64.3%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.81, 41.66, -55.55)
CIE-LCHlch(18.81, 69.43, 306.87°)
OKLaboklab(31.9% 0.0354 -0.1602)
OKLCHoklch(31.9% 0.164 282.5)
XYZxyz(5.3561, 2.7018, 21.0039)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1581 #688115
analogous
#153281 #2E1581 #641581
triadic
#2E1581 #812E15 #15812E
tetradic
#2E1581 #811532 #688115 #158164
square
#2E1581 #811532 #688115 #158164
split-complementary
#2E1581 #816415 #328115
monochromatic
#09041A #1B0C4C #2E1581 #411EB6 #5A33DE

Accessibility & contrast

On white

13.63
#2E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1581
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1581#FFFFFF#000000##FFFFFF
##2E15811.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1581;
/* rgb */ color: rgb(46, 21, 129);
/* oklch */ color: oklch(31.9% 0.164 282.5);
Tailwind
colors: {
  custom: {
    50: '#7357a7',
    500: '#2e1581',
    950: '#000000',
  },
}
SCSS
$custom: #2e1581;
$custom-light: #7357a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1581",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 253.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31896,
    "c": 0.16409,
    "h": 282.5
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#2E1581
secondary
#9AB63C
accent
#EF39C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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