#2E1B8D#2E1B8D

#2E1B8D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.173 H 279.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8D
RGBrgb(46, 27, 141)
HSLhsl(250, 68%, 33%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(67.4%, 80.9%, 0%, 44.7%)
CIE-LABlab(21.16, 42.44, -59.20)
CIE-LCHlch(21.16, 72.85, 305.64°)
OKLaboklab(33.93% 0.0283 -0.1709)
OKLCHoklch(33.93% 0.173 279.4)
XYZxyz(6.3248, 3.2873, 25.4953)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8D #7A8D1B
analogous
#1B418D #2E1B8D #671B8D
triadic
#2E1B8D #8D2E1B #1B8D2E
tetradic
#2E1B8D #8D1B41 #7A8D1B #1B8D67
square
#2E1B8D #8D1B41 #7A8D1B #1B8D67
split-complementary
#2E1B8D #8D671B #418D1B
monochromatic
#0C0726 #1D115A #2E1B8D #3F25C0 #6047DC

Accessibility & contrast

On white

12.67
#2E1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B8D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8D#FFFFFF#000000##FFFFFF
##2E1B8D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1b8d;
/* rgb */ color: rgb(46, 27, 141);
/* oklch */ color: oklch(33.9% 0.173 279.4);
Tailwind
colors: {
  custom: {
    50: '#755bb0',
    500: '#2e1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8d;
$custom-light: #755bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8d",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 250,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33928,
    "c": 0.17328,
    "h": 279.4
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#2E1B8D
secondary
#AABD46
accent
#EB3DCE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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