#2E1B89#2E1B89

#2E1B89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.168 H 280.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1B89
RGBrgb(46, 27, 137)
HSLhsl(250, 67%, 32%)
HSVhsv(250, 80%, 54%)
CMYKcmyk(66.4%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.71, 41.20, -57.44)
CIE-LCHlch(20.71, 70.69, 305.65°)
OKLaboklab(33.49% 0.0295 -0.1658)
OKLCHoklch(33.49% 0.168 280.1)
XYZxyz(6.0326, 3.1704, 23.9561)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B89 #76891B
analogous
#1B3F89 #2E1B89 #651B89
triadic
#2E1B89 #892E1B #1B892E
tetradic
#2E1B89 #891B3F #76891B #1B8965
square
#2E1B89 #891B3F #76891B #1B8965
split-complementary
#2E1B89 #89651B #3F891B
monochromatic
#0C0723 #1D1156 #2E1B89 #3F25BC #5E44DA

Accessibility & contrast

On white

12.85
#2E1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B89
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B89#FFFFFF#000000##FFFFFF
##2E1B891.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1b89;
/* rgb */ color: rgb(46, 27, 137);
/* oklch */ color: oklch(33.5% 0.168 280.1);
Tailwind
colors: {
  custom: {
    50: '#745bad',
    500: '#2e1b89',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b89;
$custom-light: #745bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b89",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 250.364,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33485,
    "c": 0.16842,
    "h": 280.1
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#2E1B89
secondary
#A7BC44
accent
#EA3ECC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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