#2E1B7B#2E1B7B

#2E1B7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.151 H 282.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1B7B
RGBrgb(46, 27, 123)
HSLhsl(252, 64%, 29%)
HSVhsv(252, 78%, 48%)
CMYKcmyk(62.6%, 78%, 0%, 51.8%)
CIE-LABlab(19.20, 36.77, -51.08)
CIE-LCHlch(19.20, 62.94, 305.75°)
OKLaboklab(31.97% 0.0335 -0.1473)
OKLCHoklch(31.97% 0.151 282.8)
XYZxyz(5.0927, 2.7944, 19.0061)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7B #687B1B
analogous
#1B387B #2E1B7B #5E1B7B
triadic
#2E1B7B #7B2E1B #1B7B2E
tetradic
#2E1B7B #7B1B38 #687B1B #1B7B5E
square
#2E1B7B #7B1B38 #687B1B #1B7B5E
split-complementary
#2E1B7B #7B5E1B #387B1B
monochromatic
#090619 #1B1049 #2E1B7B #4126AD #5A3CD4

Accessibility & contrast

On white

13.47
#2E1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B7B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B7B#FFFFFF#000000##FFFFFF
##2E1B7B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1b7b;
/* rgb */ color: rgb(46, 27, 123);
/* oklch */ color: oklch(32.0% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#715aa2',
    500: '#2e1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7b;
$custom-light: #715aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7b",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 251.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31974,
    "c": 0.15102,
    "h": 282.8
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#2E1B7B
secondary
#9AAF43
accent
#E741C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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