#2E1B83#2E1B83

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

Color values

HEX#2E1B83
RGBrgb(46, 27, 131)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 79%, 51%)
CMYKcmyk(64.9%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.06, 39.31, -54.75)
CIE-LCHlch(20.06, 67.40, 305.68°)
OKLaboklab(32.83% 0.0312 -0.158)
OKLCHoklch(32.83% 0.161 281.2)
XYZxyz(5.6141, 3.0030, 21.7521)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B83 #70831B
analogous
#1B3C83 #2E1B83 #621B83
triadic
#2E1B83 #832E1B #1B832E
tetradic
#2E1B83 #831B3C #70831B #1B8362
square
#2E1B83 #831B3C #70831B #1B8362
split-complementary
#2E1B83 #83621B #3C831B
monochromatic
#0A061E #1C1150 #2E1B83 #4025B6 #5C41D8

Accessibility & contrast

On white

13.12
#2E1B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B83
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B83#FFFFFF#000000##FFFFFF
##2E1B831.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1b83;
/* rgb */ color: rgb(46, 27, 131);
/* oklch */ color: oklch(32.8% 0.161 281.2);
Tailwind
colors: {
  custom: {
    50: '#735aa8',
    500: '#2e1b83',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b83;
$custom-light: #735aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b83",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 250.962,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3283,
    "c": 0.16104,
    "h": 281.2
  },
  "luminance": 0.03003
}

Semantic roles & 50–950 ramp

primary
#2E1B83
secondary
#A1B643
accent
#E93FCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B83

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

Preview Lab → · Contrast checker → · Palette generator →

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