#2E1B7D#2E1B7D

#2E1B7D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.154 H 282.4°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1B7D
RGBrgb(46, 27, 125)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(63.2%, 78.4%, 0%, 51%)
CIE-LABlab(19.41, 37.41, -52.01)
CIE-LCHlch(19.41, 64.06, 305.73°)
OKLaboklab(32.19% 0.0329 -0.15)
OKLCHoklch(32.19% 0.154 282.4)
XYZxyz(5.2192, 2.8450, 19.6722)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7D #6A7D1B
analogous
#1B397D #2E1B7D #5F1B7D
triadic
#2E1B7D #7D2E1B #1B7D2E
tetradic
#2E1B7D #7D1B39 #6A7D1B #1B7D5F
square
#2E1B7D #7D1B39 #6A7D1B #1B7D5F
split-complementary
#2E1B7D #7D5F1B #397D1B
monochromatic
#090519 #1B104B #2E1B7D #4126AF #5B3DD5

Accessibility & contrast

On white

13.38
#2E1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B7D
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B7D#FFFFFF#000000##FFFFFF
##2E1B7D1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1b7d;
/* rgb */ color: rgb(46, 27, 125);
/* oklch */ color: oklch(32.2% 0.154 282.4);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2e1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7d;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7d",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 251.633,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32186,
    "c": 0.15355,
    "h": 282.4
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#2E1B7D
secondary
#9CB143
accent
#E740C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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