#2E1E79#2E1E79

#2E1E79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.145 H 282.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1E79
RGBrgb(46, 30, 121)
HSLhsl(251, 60%, 30%)
HSVhsv(251, 75%, 47%)
CMYKcmyk(62%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.60, 34.43, -49.16)
CIE-LCHlch(19.60, 60.01, 305.01°)
OKLaboklab(32.19% 0.0317 -0.1417)
OKLCHoklch(32.19% 0.145 282.6)
XYZxyz(5.0411, 2.8895, 18.3775)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E79 #69791E
analogous
#1E3C79 #2E1E79 #5B1E79
triadic
#2E1E79 #792E1E #1E792E
tetradic
#2E1E79 #791E3C #69791E #1E795B
square
#2E1E79 #791E3C #69791E #1E795B
split-complementary
#2E1E79 #795B1E #3C791E
monochromatic
#090619 #1B1248 #2E1E79 #412AAA #5A41D0

Accessibility & contrast

On white

13.31
#2E1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E79
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E79#FFFFFF#000000##FFFFFF
##2E1E791.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e79;
/* rgb */ color: rgb(46, 30, 121);
/* oklch */ color: oklch(32.2% 0.145 282.6);
Tailwind
colors: {
  custom: {
    50: '#715ca1',
    500: '#2e1e79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e79;
$custom-light: #715ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e79",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 250.549,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32191,
    "c": 0.14515,
    "h": 282.6
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#2E1E79
secondary
#9BAD46
accent
#E344C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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