#2E1D78#2E1D78

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

Color values

HEX#2E1D78
RGBrgb(46, 29, 120)
HSLhsl(251, 61%, 29%)
HSVhsv(251, 76%, 47%)
CMYKcmyk(61.7%, 75.8%, 0%, 52.9%)
CIE-LABlab(19.29, 34.68, -49.02)
CIE-LCHlch(19.29, 60.05, 305.28°)
OKLaboklab(31.94% 0.0327 -0.1413)
OKLCHoklch(31.94% 0.145 283)
XYZxyz(4.9552, 2.8153, 18.0480)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D78 #67781D
analogous
#1D3A78 #2E1D78 #5C1D78
triadic
#2E1D78 #782E1D #1D782E
tetradic
#2E1D78 #781D3A #67781D #1D785C
square
#2E1D78 #781D3A #67781D #1D785C
split-complementary
#2E1D78 #785C1D #3A781D
monochromatic
#090619 #1B1147 #2E1D78 #4129A9 #5A3FD1

Accessibility & contrast

On white

13.43
#2E1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D78
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D78#FFFFFF#000000##FFFFFF
##2E1D781.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1d78;
/* rgb */ color: rgb(46, 29, 120);
/* oklch */ color: oklch(31.9% 0.145 283.0);
Tailwind
colors: {
  custom: {
    50: '#715ba0',
    500: '#2e1d78',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d78;
$custom-light: #715ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d78",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 251.209,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.145,
    "h": 283
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2E1D78
secondary
#99AC45
accent
#E444C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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