#2E1476#2E1476

#2E1476 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.152 H 285.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2E1476
RGBrgb(46, 20, 118)
HSLhsl(256, 71%, 27%)
HSVhsv(256, 83%, 46%)
CMYKcmyk(61%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.41, 38.81, -50.83)
CIE-LCHlch(17.41, 63.96, 307.36°)
OKLaboklab(30.56% 0.0398 -0.1465)
OKLCHoklch(30.56% 0.152 285.2)
XYZxyz(4.6459, 2.3889, 17.3523)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1476 #5C7614
analogous
#142B76 #2E1476 #5F1476
triadic
#2E1476 #762E14 #14762E
tetradic
#2E1476 #76142B #5C7614 #14765F
square
#2E1476 #76142B #5C7614 #14765F
split-complementary
#2E1476 #765F14 #2B7614
monochromatic
#0A041A #1A0B42 #2E1476 #421DAA #592ADB

Accessibility & contrast

On white

14.21
#2E1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1476
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1476#FFFFFF#000000##FFFFFF
##2E14761.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#053145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1476;
/* rgb */ color: rgb(46, 20, 118);
/* oklch */ color: oklch(30.6% 0.152 285.2);
Tailwind
colors: {
  custom: {
    50: '#71569f',
    500: '#2e1476',
    950: '#000000',
  },
}
SCSS
$custom: #2e1476;
$custom-light: #71569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1476",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 255.918,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3056,
    "c": 0.15179,
    "h": 285.2
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#2E1476
secondary
#8EAC3A
accent
#EE3ABE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2E1476

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

Preview Lab → · Contrast checker → · Palette generator →

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