#2E1B7E#2E1B7E

#2E1B7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.155 H 282.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1B7E
RGBrgb(46, 27, 126)
HSLhsl(252, 65%, 30%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(63.5%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.52, 37.73, -52.47)
CIE-LCHlch(19.52, 64.62, 305.72°)
OKLaboklab(32.29% 0.0326 -0.1513)
OKLCHoklch(32.29% 0.155 282.2)
XYZxyz(5.2834, 2.8707, 20.0103)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7E #6B7E1B
analogous
#1B3A7E #2E1B7E #5F1B7E
triadic
#2E1B7E #7E2E1B #1B7E2E
tetradic
#2E1B7E #7E1B3A #6B7E1B #1B7E5F
square
#2E1B7E #7E1B3A #6B7E1B #1B7E5F
split-complementary
#2E1B7E #7E5F1B #3A7E1B
monochromatic
#090519 #1C104C #2E1B7E #4026B0 #5B3ED6

Accessibility & contrast

On white

13.34
#2E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B7E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B7E#FFFFFF#000000##FFFFFF
##2E1B7E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1b7e;
/* rgb */ color: rgb(46, 27, 126);
/* oklch */ color: oklch(32.3% 0.155 282.2);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2e1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7e;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7e",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 251.515,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.1548,
    "h": 282.2
  },
  "luminance": 0.02871
}

Semantic roles & 50–950 ramp

primary
#2E1B7E
secondary
#9DB243
accent
#E840C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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