#2E1237#2E1237

#2E1237 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.4% C 0.075 H 317.2°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1237
RGBrgb(46, 18, 55)
HSLhsl(285, 51%, 14%)
HSVhsv(285, 67%, 22%)
CMYKcmyk(16.4%, 67.3%, 0%, 78.4%)
CIE-LABlab(11.20, 21.54, -18.20)
CIE-LCHlch(11.20, 28.20, 319.79°)
OKLaboklab(24.36% 0.0549 -0.0508)
OKLCHoklch(24.36% 0.075 317.2)
XYZxyz(2.0325, 1.2894, 3.7555)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1237 #1B3712
analogous
#1C1237 #2E1237 #37122E
triadic
#2E1237 #372E12 #12372E
tetradic
#2E1237 #371C12 #1B3712 #122E37
square
#2E1237 #371C12 #1B3712 #122E37
split-complementary
#2E1237 #2E3712 #12371C
monochromatic
#130817 #130817 #2E1237 #552165 #7B3093

Accessibility & contrast

On white

16.70
#2E1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2E1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1237
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1237#FFFFFF#000000##FFFFFF
##2E12371.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C38
Deuteranopia (green-blind)
#131F36
Tritanopia (blue-blind)
#2E1822
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e1237;
/* rgb */ color: rgb(46, 18, 55);
/* oklch */ color: oklch(24.4% 0.075 317.2);
Tailwind
colors: {
  custom: {
    50: '#68516e',
    500: '#2e1237',
    950: '#000000',
  },
}
SCSS
$custom: #2e1237;
$custom-light: #68516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1237",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 285.405,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24363,
    "c": 0.07483,
    "h": 317.2
  },
  "luminance": 0.01289
}

Semantic roles & 50–950 ramp

primary
#2E1237
secondary
#437035
accent
#DA4E70
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1237

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

Preview Lab → · Contrast checker → · Palette generator →

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