#2E1B8B#2E1B8B

#2E1B8B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.171 H 279.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8B
RGBrgb(46, 27, 139)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(66.9%, 80.6%, 0%, 45.5%)
CIE-LABlab(20.94, 41.82, -58.32)
CIE-LCHlch(20.94, 71.77, 305.64°)
OKLaboklab(33.71% 0.0289 -0.1684)
OKLCHoklch(33.71% 0.171 279.7)
XYZxyz(6.1774, 3.2283, 24.7187)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8B #788B1B
analogous
#1B408B #2E1B8B #661B8B
triadic
#2E1B8B #8B2E1B #1B8B2E
tetradic
#2E1B8B #8B1B40 #788B1B #1B8B66
square
#2E1B8B #8B1B40 #788B1B #1B8B66
split-complementary
#2E1B8B #8B661B #408B1B
monochromatic
#0C0725 #1D1158 #2E1B8B #3F25BE #5F45DB

Accessibility & contrast

On white

12.76
#2E1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B8B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8B#FFFFFF#000000##FFFFFF
##2E1B8B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1b8b;
/* rgb */ color: rgb(46, 27, 139);
/* oklch */ color: oklch(33.7% 0.171 279.7);
Tailwind
colors: {
  custom: {
    50: '#755bae',
    500: '#2e1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8b;
$custom-light: #755bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8b",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 250.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33706,
    "c": 0.17085,
    "h": 279.7
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#2E1B8B
secondary
#A8BC45
accent
#EA3DCD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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