#2E1438#2E1438

#2E1438 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.8% C 0.072 H 315.7°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#2E1438
RGBrgb(46, 20, 56)
HSLhsl(283, 47%, 15%)
HSVhsv(283, 64%, 22%)
CMYKcmyk(17.9%, 64.3%, 0%, 78%)
CIE-LABlab(11.73, 20.55, -18.08)
CIE-LCHlch(11.73, 27.37, 318.66°)
OKLaboklab(24.78% 0.0517 -0.0504)
OKLCHoklch(24.78% 0.072 315.7)
XYZxyz(2.0906, 1.3667, 3.8943)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1438 #1E3814
analogous
#1C1438 #2E1438 #381430
triadic
#2E1438 #382E14 #14382E
tetradic
#2E1438 #381C14 #1E3814 #143038
square
#2E1438 #381C14 #1E3814 #143038
split-complementary
#2E1438 #303814 #14381C
monochromatic
#130817 #130817 #2E1438 #532465 #783492

Accessibility & contrast

On white

16.49
#2E1438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1438
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1438#FFFFFF#000000##FFFFFF
##2E14381.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1D39
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#2D1A23
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1438;
/* rgb */ color: rgb(46, 20, 56);
/* oklch */ color: oklch(24.8% 0.072 315.7);
Tailwind
colors: {
  custom: {
    50: '#68536f',
    500: '#2e1438',
    950: '#000000',
  },
}
SCSS
$custom: #2e1438;
$custom-light: #68536f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1438",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 56
  },
  "hsl": {
    "h": 283.333,
    "s": 47.368,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24775,
    "c": 0.07226,
    "h": 315.7
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#2E1438
secondary
#487038
accent
#D75176
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1438

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

Preview Lab → · Contrast checker → · Palette generator →

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