#2E1D79#2E1D79

#2E1D79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.146 H 282.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2E1D79
RGBrgb(46, 29, 121)
HSLhsl(251, 61%, 29%)
HSVhsv(251, 76%, 47%)
CMYKcmyk(62%, 76%, 0%, 52.5%)
CIE-LABlab(19.39, 35.01, -49.49)
CIE-LCHlch(19.39, 60.62, 305.27°)
OKLaboklab(32.05% 0.0325 -0.1426)
OKLCHoklch(32.05% 0.146 282.8)
XYZxyz(5.0162, 2.8397, 18.3692)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D79 #68791D
analogous
#1D3A79 #2E1D79 #5C1D79
triadic
#2E1D79 #792E1D #1D792E
tetradic
#2E1D79 #791D3A #68791D #1D795C
square
#2E1D79 #791D3A #68791D #1D795C
split-complementary
#2E1D79 #795C1D #3A791D
monochromatic
#090619 #1B1148 #2E1D79 #4129AA #5A3FD1

Accessibility & contrast

On white

13.39
#2E1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D79
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D79#FFFFFF#000000##FFFFFF
##2E1D791.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1d79;
/* rgb */ color: rgb(46, 29, 121);
/* oklch */ color: oklch(32.0% 0.146 282.8);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2e1d79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d79;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d79",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 251.087,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32045,
    "c": 0.14629,
    "h": 282.8
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#2E1D79
secondary
#9AAD45
accent
#E443C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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