#2E1B86#2E1B86

#2E1B86 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 280.6°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2E1B86
RGBrgb(46, 27, 134)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 80%, 53%)
CMYKcmyk(65.7%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.38, 40.26, -56.10)
CIE-LCHlch(20.38, 69.05, 305.66°)
OKLaboklab(33.16% 0.0304 -0.1619)
OKLCHoklch(33.16% 0.165 280.6)
XYZxyz(5.8204, 3.0855, 22.8385)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B86 #73861B
analogous
#1B3E86 #2E1B86 #641B86
triadic
#2E1B86 #862E1B #1B862E
tetradic
#2E1B86 #861B3E #73861B #1B8664
square
#2E1B86 #861B3E #73861B #1B8664
split-complementary
#2E1B86 #86641B #3E861B
monochromatic
#0B0620 #1D1153 #2E1B86 #3F25B9 #5D42D9

Accessibility & contrast

On white

12.99
#2E1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B86
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B86#FFFFFF#000000##FFFFFF
##2E1B861.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1b86;
/* rgb */ color: rgb(46, 27, 134);
/* oklch */ color: oklch(33.2% 0.165 280.6);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2e1b86',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b86;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b86",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 250.654,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33156,
    "c": 0.16474,
    "h": 280.6
  },
  "luminance": 0.03086
}

Semantic roles & 50–950 ramp

primary
#2E1B86
secondary
#A4B944
accent
#E93ECB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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