#2E1B87#2E1B87

#2E1B87 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.166 H 280.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2E1B87
RGBrgb(46, 27, 135)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 53%)
CMYKcmyk(65.9%, 80%, 0%, 47.1%)
CIE-LABlab(20.49, 40.57, -56.55)
CIE-LCHlch(20.49, 69.60, 305.66°)
OKLaboklab(33.27% 0.0301 -0.1632)
OKLCHoklch(33.27% 0.166 280.4)
XYZxyz(5.8904, 3.1135, 23.2075)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B87 #74871B
analogous
#1B3E87 #2E1B87 #641B87
triadic
#2E1B87 #872E1B #1B872E
tetradic
#2E1B87 #871B3E #74871B #1B8764
square
#2E1B87 #871B3E #74871B #1B8764
split-complementary
#2E1B87 #87641B #3E871B
monochromatic
#0B0721 #1D1154 #2E1B87 #3F25BA #5D43D9

Accessibility & contrast

On white

12.94
#2E1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B87
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B87#FFFFFF#000000##FFFFFF
##2E1B871.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1b87;
/* rgb */ color: rgb(46, 27, 135);
/* oklch */ color: oklch(33.3% 0.166 280.4);
Tailwind
colors: {
  custom: {
    50: '#745bab',
    500: '#2e1b87',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b87;
$custom-light: #745bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b87",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 250.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33266,
    "c": 0.16597,
    "h": 280.4
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#2E1B87
secondary
#A5BA44
accent
#EA3ECB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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