#2E1796#2E1796

#2E1796 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.187 H 278.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1796
RGBrgb(46, 23, 150)
HSLhsl(251, 73%, 34%)
HSVhsv(251, 85%, 59%)
CMYKcmyk(69.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.56, 47.05, -64.12)
CIE-LCHlch(21.56, 79.53, 306.27°)
OKLaboklab(34.51% 0.0274 -0.1852)
OKLCHoklch(34.51% 0.187 278.4)
XYZxyz(6.9364, 3.3950, 29.1380)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1796 #7F9617
analogous
#174096 #2E1796 #6E1796
triadic
#2E1796 #962E17 #17962E
tetradic
#2E1796 #961740 #7F9617 #17966E
square
#2E1796 #961740 #7F9617 #17966E
split-complementary
#2E1796 #966E17 #409617
monochromatic
#0D072C #1E0F61 #2E1796 #3E1FCB #6145E2

Accessibility & contrast

On white

12.51
#2E1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1796
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1796#FFFFFF#000000##FFFFFF
##2E17961.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1796;
/* rgb */ color: rgb(46, 23, 150);
/* oklch */ color: oklch(34.5% 0.187 278.4);
Tailwind
colors: {
  custom: {
    50: '#785ab6',
    500: '#2e1796',
    950: '#000000',
  },
}
SCSS
$custom: #2e1796;
$custom-light: #785ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1796",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 250.866,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3451,
    "c": 0.1872,
    "h": 278.4
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#2E1796
secondary
#ADC345
accent
#F038CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1796

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

Preview Lab → · Contrast checker → · Palette generator →

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