#2E1E76#2E1E76

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

Color values

HEX#2E1E76
RGBrgb(46, 30, 118)
HSLhsl(251, 59%, 29%)
HSVhsv(251, 75%, 46%)
CMYKcmyk(61%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.30, 33.44, -47.73)
CIE-LCHlch(19.30, 58.28, 305.02°)
OKLaboklab(31.89% 0.0323 -0.1375)
OKLCHoklch(31.89% 0.141 283.2)
XYZxyz(4.8600, 2.8171, 17.4237)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E76 #66761E
analogous
#1E3A76 #2E1E76 #5A1E76
triadic
#2E1E76 #762E1E #1E762E
tetradic
#2E1E76 #761E3A #66761E #1E765A
square
#2E1E76 #761E3A #66761E #1E765A
split-complementary
#2E1E76 #765A1E #3A761E
monochromatic
#0A0618 #1B1245 #2E1E76 #412AA7 #5A40CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1E76#FFFFFF#000000##FFFFFF
##2E1E761.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)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#033648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1e76;
/* rgb */ color: rgb(46, 30, 118);
/* oklch */ color: oklch(31.9% 0.141 283.2);
Tailwind
colors: {
  custom: {
    50: '#705c9e',
    500: '#2e1e76',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e76;
$custom-light: #705c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e76",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 250.909,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31886,
    "c": 0.14123,
    "h": 283.2
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#2E1E76
secondary
#98AA46
accent
#E345C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1E76

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

Preview Lab → · Contrast checker → · Palette generator →

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