#2E1B8A#2E1B8A

#2E1B8A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.170 H 279.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8A
RGBrgb(46, 27, 138)
HSLhsl(250, 67%, 32%)
HSVhsv(250, 80%, 54%)
CMYKcmyk(66.7%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.82, 41.51, -57.88)
CIE-LCHlch(20.82, 71.23, 305.65°)
OKLaboklab(33.6% 0.0292 -0.1671)
OKLCHoklch(33.6% 0.17 279.9)
XYZxyz(6.1046, 3.1992, 24.3356)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8A #778A1B
analogous
#1B408A #2E1B8A #651B8A
triadic
#2E1B8A #8A2E1B #1B8A2E
tetradic
#2E1B8A #8A1B40 #778A1B #1B8A65
square
#2E1B8A #8A1B40 #778A1B #1B8A65
split-complementary
#2E1B8A #8A651B #408A1B
monochromatic
#0C0724 #1D1157 #2E1B8A #3F25BD #5E45DB

Accessibility & contrast

On white

12.80
#2E1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B8A
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8A#FFFFFF#000000##FFFFFF
##2E1B8A1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1b8a;
/* rgb */ color: rgb(46, 27, 138);
/* oklch */ color: oklch(33.6% 0.170 279.9);
Tailwind
colors: {
  custom: {
    50: '#755bad',
    500: '#2e1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8a;
$custom-light: #755bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8a",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 250.27,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33595,
    "c": 0.16964,
    "h": 279.9
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#2E1B8A
secondary
#A8BC45
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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