#2E1D81#2E1D81

#2E1D81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.157 H 281.2°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2E1D81
RGBrgb(46, 29, 129)
HSLhsl(250, 63%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(64.3%, 77.5%, 0%, 49.4%)
CIE-LABlab(20.22, 37.59, -53.22)
CIE-LCHlch(20.22, 65.16, 305.24°)
OKLaboklab(32.88% 0.0305 -0.1535)
OKLCHoklch(32.88% 0.157 281.2)
XYZxyz(5.5273, 3.0441, 21.0609)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D81 #70811D
analogous
#1D3E81 #2E1D81 #601D81
triadic
#2E1D81 #812E1D #1D812E
tetradic
#2E1D81 #811D3E #70811D #1D8160
square
#2E1D81 #811D3E #70811D #1D8160
split-complementary
#2E1D81 #81601D #3E811D
monochromatic
#0A071D #1C124F #2E1D81 #4028B3 #5C44D5

Accessibility & contrast

On white

13.05
#2E1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D81
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D81#FFFFFF#000000##FFFFFF
##2E1D811.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1d81;
/* rgb */ color: rgb(46, 29, 129);
/* oklch */ color: oklch(32.9% 0.157 281.2);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2e1d81',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d81;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d81",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 250.2,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32881,
    "c": 0.15651,
    "h": 281.2
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#2E1D81
secondary
#A1B446
accent
#E641CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D81

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

Preview Lab → · Contrast checker → · Palette generator →

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