#2E1583#2E1583

#2E1583 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.166 H 282.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1583
RGBrgb(46, 21, 131)
HSLhsl(254, 72%, 30%)
HSVhsv(254, 84%, 51%)
CMYKcmyk(64.9%, 84%, 0%, 48.6%)
CIE-LABlab(19.04, 42.26, -56.43)
CIE-LCHlch(19.04, 70.50, 306.83°)
OKLaboklab(32.12% 0.0348 -0.1628)
OKLCHoklch(32.12% 0.166 282)
XYZxyz(5.4903, 2.7555, 21.7109)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1583 #6A8315
analogous
#153383 #2E1583 #651583
triadic
#2E1583 #832E15 #15832E
tetradic
#2E1583 #831533 #6A8315 #158365
square
#2E1583 #831533 #6A8315 #158365
split-complementary
#2E1583 #836515 #338315
monochromatic
#09041A #1B0D4E #2E1583 #411DB8 #5B34DE

Accessibility & contrast

On white

13.54
#2E1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1583
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1583#FFFFFF#000000##FFFFFF
##2E15831.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1583;
/* rgb */ color: rgb(46, 21, 131);
/* oklch */ color: oklch(32.1% 0.166 282.0);
Tailwind
colors: {
  custom: {
    50: '#7457a8',
    500: '#2e1583',
    950: '#000000',
  },
}
SCSS
$custom: #2e1583;
$custom-light: #7457a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1583",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 253.636,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32122,
    "c": 0.16648,
    "h": 282
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#2E1583
secondary
#9CB83C
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2E1583

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

Preview Lab → · Contrast checker → · Palette generator →

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