#2E1D83#2E1D83

#2E1D83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.159 H 280.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1D83
RGBrgb(46, 29, 131)
HSLhsl(250, 64%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(64.9%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.43, 38.24, -54.13)
CIE-LCHlch(20.43, 66.28, 305.24°)
OKLaboklab(33.09% 0.0299 -0.1562)
OKLCHoklch(33.09% 0.159 280.8)
XYZxyz(5.6615, 3.0978, 21.7679)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D83 #72831D
analogous
#1D3F83 #2E1D83 #611D83
triadic
#2E1D83 #832E1D #1D832E
tetradic
#2E1D83 #831D3F #72831D #1D8361
square
#2E1D83 #831D3F #72831D #1D8361
split-complementary
#2E1D83 #83611D #3F831D
monochromatic
#0B071F #1C1251 #2E1D83 #4028B5 #5D45D6

Accessibility & contrast

On white

12.97
#2E1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D83
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D83#FFFFFF#000000##FFFFFF
##2E1D831.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1d83;
/* rgb */ color: rgb(46, 29, 131);
/* oklch */ color: oklch(33.1% 0.159 280.8);
Tailwind
colors: {
  custom: {
    50: '#735ca8',
    500: '#2e1d83',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d83;
$custom-light: #735ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d83",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 250,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33093,
    "c": 0.15903,
    "h": 280.8
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#2E1D83
secondary
#A3B646
accent
#E741CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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