#2E1B84#2E1B84

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

Color values

HEX#2E1B84
RGBrgb(46, 27, 132)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(65.2%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.16, 39.63, -55.20)
CIE-LCHlch(20.16, 67.95, 305.67°)
OKLaboklab(32.94% 0.031 -0.1593)
OKLCHoklch(32.94% 0.162 281)
XYZxyz(5.6822, 3.0302, 22.1108)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B84 #71841B
analogous
#1B3C84 #2E1B84 #621B84
triadic
#2E1B84 #842E1B #1B842E
tetradic
#2E1B84 #841B3C #71841B #1B8462
square
#2E1B84 #841B3C #71841B #1B8462
split-complementary
#2E1B84 #84621B #3C841B
monochromatic
#0B061E #1C1151 #2E1B84 #4025B7 #5D41D8

Accessibility & contrast

On white

13.07
#2E1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B84
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B84#FFFFFF#000000##FFFFFF
##2E1B841.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1b84;
/* rgb */ color: rgb(46, 27, 132);
/* oklch */ color: oklch(32.9% 0.162 281.0);
Tailwind
colors: {
  custom: {
    50: '#735ba9',
    500: '#2e1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b84;
$custom-light: #735ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b84",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 250.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.16228,
    "h": 281
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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