#2E1C79#2E1C79

#2E1C79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.147 H 283.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2E1C79
RGBrgb(46, 28, 121)
HSLhsl(252, 62%, 29%)
HSVhsv(252, 77%, 47%)
CMYKcmyk(62%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.19, 35.57, -49.83)
CIE-LCHlch(19.19, 61.22, 305.53°)
OKLaboklab(31.9% 0.0332 -0.1436)
OKLCHoklch(31.9% 0.147 283)
XYZxyz(4.9921, 2.7915, 18.3612)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C79 #67791C
analogous
#1C3979 #2E1C79 #5D1C79
triadic
#2E1C79 #792E1C #1C792E
tetradic
#2E1C79 #791C39 #67791C #1C795D
square
#2E1C79 #791C39 #67791C #1C795D
split-complementary
#2E1C79 #795D1C #39791C
monochromatic
#090619 #1B1047 #2E1C79 #4128AB #5A3DD2

Accessibility & contrast

On white

13.48
#2E1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1C79
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C79#FFFFFF#000000##FFFFFF
##2E1C791.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1c79;
/* rgb */ color: rgb(46, 28, 121);
/* oklch */ color: oklch(31.9% 0.147 283.0);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2e1c79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c79;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c79",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 251.613,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31902,
    "c": 0.1474,
    "h": 283
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#2E1C79
secondary
#99AD44
accent
#E542C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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