#2E1538#2E1538

#2E1538 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.070 H 315.4°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#2E1538
RGBrgb(46, 21, 56)
HSLhsl(283, 45%, 15%)
HSVhsv(283, 63%, 22%)
CMYKcmyk(17.9%, 62.5%, 0%, 78%)
CIE-LABlab(11.98, 19.91, -17.69)
CIE-LCHlch(11.98, 26.63, 318.37°)
OKLaboklab(24.95% 0.0501 -0.0493)
OKLCHoklch(24.95% 0.07 315.4)
XYZxyz(2.1086, 1.4028, 3.9003)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1538 #1F3815
analogous
#1C1538 #2E1538 #381531
triadic
#2E1538 #382E15 #15382E
tetradic
#2E1538 #381C15 #1F3815 #153138
square
#2E1538 #381C15 #1F3815 #153138
split-complementary
#2E1538 #313815 #15381C
monochromatic
#120816 #120816 #2E1538 #532665 #773691

Accessibility & contrast

On white

16.40
#2E1538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1538
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1538#FFFFFF#000000##FFFFFF
##2E15381.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1E39
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#2D1B24
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1538;
/* rgb */ color: rgb(46, 21, 56);
/* oklch */ color: oklch(25.0% 0.070 315.4);
Tailwind
colors: {
  custom: {
    50: '#68536f',
    500: '#2e1538',
    950: '#000000',
  },
}
SCSS
$custom: #2e1538;
$custom-light: #68536f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1538",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 282.857,
    "s": 45.455,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24953,
    "c": 0.0703,
    "h": 315.4
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#2E1538
secondary
#496F3A
accent
#D55378
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1538

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

Preview Lab → · Contrast checker → · Palette generator →

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