#2E1C86#2E1C86

#2E1C86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.164 H 280.5°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2E1C86
RGBrgb(46, 28, 134)
HSLhsl(250, 65%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(65.7%, 79.1%, 0%, 47.5%)
CIE-LABlab(20.57, 39.73, -55.80)
CIE-LCHlch(20.57, 68.50, 305.45°)
OKLaboklab(33.28% 0.0298 -0.161)
OKLCHoklch(33.28% 0.164 280.5)
XYZxyz(5.8437, 3.1321, 22.8462)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C86 #74861C
analogous
#1C3F86 #2E1C86 #631C86
triadic
#2E1C86 #862E1C #1C862E
tetradic
#2E1C86 #861C3F #74861C #1C8663
square
#2E1C86 #861C3F #74861C #1C8663
split-complementary
#2E1C86 #86631C #3F861C
monochromatic
#0B0721 #1D1153 #2E1C86 #3F27B9 #5D44D8

Accessibility & contrast

On white

12.91
#2E1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C86
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C86#FFFFFF#000000##FFFFFF
##2E1C861.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1c86;
/* rgb */ color: rgb(46, 28, 134);
/* oklch */ color: oklch(33.3% 0.164 280.5);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2e1c86',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c86;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c86",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 250.189,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.16378,
    "h": 280.5
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#2E1C86
secondary
#A5B945
accent
#E83FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1C86

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

Preview Lab → · Contrast checker → · Palette generator →

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