#2E1338#2E1338

#2E1338 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.074 H 316.0°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#2E1338
RGBrgb(46, 19, 56)
HSLhsl(284, 49%, 15%)
HSVhsv(284, 66%, 22%)
CMYKcmyk(17.9%, 66.1%, 0%, 78%)
CIE-LABlab(11.50, 21.18, -18.45)
CIE-LCHlch(11.50, 28.09, 318.93°)
OKLaboklab(24.6% 0.0534 -0.0515)
OKLCHoklch(24.6% 0.074 316)
XYZxyz(2.0733, 1.3322, 3.8885)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1338 #1D3813
analogous
#1C1338 #2E1338 #381330
triadic
#2E1338 #382E13 #13382E
tetradic
#2E1338 #381C13 #1D3813 #133038
square
#2E1338 #381C13 #1D3813 #133038
split-complementary
#2E1338 #303813 #13381C
monochromatic
#130817 #130817 #2E1338 #542366 #793293

Accessibility & contrast

On white

16.58
#2E1338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2E1338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1338
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1338#FFFFFF#000000##FFFFFF
##2E13381.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1D39
Deuteranopia (green-blind)
#131F37
Tritanopia (blue-blind)
#2D1923
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e1338;
/* rgb */ color: rgb(46, 19, 56);
/* oklch */ color: oklch(24.6% 0.074 316.0);
Tailwind
colors: {
  custom: {
    50: '#68526f',
    500: '#2e1338',
    950: '#000000',
  },
}
SCSS
$custom: #2e1338;
$custom-light: #68526f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1338",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 283.784,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24602,
    "c": 0.0742,
    "h": 316
  },
  "luminance": 0.01332
}

Semantic roles & 50–950 ramp

primary
#2E1338
secondary
#467037
accent
#D94F74
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1338

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

Preview Lab → · Contrast checker → · Palette generator →

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