#2E1B7A#2E1B7A

#2E1B7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.150 H 283.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1B7A
RGBrgb(46, 27, 122)
HSLhsl(252, 64%, 29%)
HSVhsv(252, 78%, 48%)
CMYKcmyk(62.3%, 77.9%, 0%, 52.2%)
CIE-LABlab(19.10, 36.45, -50.62)
CIE-LCHlch(19.10, 62.38, 305.76°)
OKLaboklab(31.87% 0.0337 -0.1459)
OKLCHoklch(31.87% 0.15 283)
XYZxyz(5.0304, 2.7695, 18.6781)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7A #677A1B
analogous
#1B387A #2E1B7A #5E1B7A
triadic
#2E1B7A #7A2E1B #1B7A2E
tetradic
#2E1B7A #7A1B38 #677A1B #1B7A5E
square
#2E1B7A #7A1B38 #677A1B #1B7A5E
split-complementary
#2E1B7A #7A5E1B #387A1B
monochromatic
#090619 #1B1048 #2E1B7A #4126AC #5A3CD4

Accessibility & contrast

On white

13.51
#2E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B7A
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B7A#FFFFFF#000000##FFFFFF
##2E1B7A1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1b7a;
/* rgb */ color: rgb(46, 27, 122);
/* oklch */ color: oklch(31.9% 0.150 283.0);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2e1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7a;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7a",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 252,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.14976,
    "h": 283
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#2E1B7A
secondary
#99AE43
accent
#E741C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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