#2E1D77#2E1D77

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

Color values

HEX#2E1D77
RGBrgb(46, 29, 119)
HSLhsl(251, 61%, 29%)
HSVhsv(251, 76%, 47%)
CMYKcmyk(61.3%, 75.6%, 0%, 53.3%)
CIE-LABlab(19.19, 34.35, -48.55)
CIE-LCHlch(19.19, 59.47, 305.29°)
OKLaboklab(31.84% 0.0329 -0.1399)
OKLCHoklch(31.84% 0.144 283.2)
XYZxyz(4.8948, 2.7912, 17.7300)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D77 #66771D
analogous
#1D3977 #2E1D77 #5B1D77
triadic
#2E1D77 #772E1D #1D772E
tetradic
#2E1D77 #771D39 #66771D #1D775B
square
#2E1D77 #771D39 #66771D #1D775B
split-complementary
#2E1D77 #775B1D #39771D
monochromatic
#0A0619 #1B1146 #2E1D77 #4129A8 #5A3ED0

Accessibility & contrast

On white

13.48
#2E1D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D77
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D77#FFFFFF#000000##FFFFFF
##2E1D771.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#013648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1d77;
/* rgb */ color: rgb(46, 29, 119);
/* oklch */ color: oklch(31.8% 0.144 283.2);
Tailwind
colors: {
  custom: {
    50: '#705b9f',
    500: '#2e1d77',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d77;
$custom-light: #705b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d77",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 251.333,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.14369,
    "h": 283.2
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#2E1D77
secondary
#98AB45
accent
#E444C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1D77

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

Preview Lab → · Contrast checker → · Palette generator →

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