#2E1137#2E1137

#2E1137 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.2% C 0.077 H 317.5°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1137
RGBrgb(46, 17, 55)
HSLhsl(286, 53%, 14%)
HSVhsv(286, 69%, 22%)
CMYKcmyk(16.4%, 69.1%, 0%, 78.4%)
CIE-LABlab(10.98, 22.14, -18.56)
CIE-LCHlch(10.98, 28.89, 320.03°)
OKLaboklab(24.2% 0.0565 -0.0518)
OKLCHoklch(24.2% 0.077 317.5)
XYZxyz(2.0167, 1.2577, 3.7502)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1137 #1A3711
analogous
#1B1137 #2E1137 #37112D
triadic
#2E1137 #372E11 #11372E
tetradic
#2E1137 #371B11 #1A3711 #112D37
square
#2E1137 #371B11 #1A3711 #112D37
split-complementary
#2E1137 #2D3711 #11371B
monochromatic
#140717 #140717 #2E1137 #551F66 #7C2E95

Accessibility & contrast

On white

16.78
#2E1137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2E1137 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1137
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1137#FFFFFF#000000##FFFFFF
##2E11371.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C38
Deuteranopia (green-blind)
#121E36
Tritanopia (blue-blind)
#2E1722
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e1137;
/* rgb */ color: rgb(46, 17, 55);
/* oklch */ color: oklch(24.2% 0.077 317.5);
Tailwind
colors: {
  custom: {
    50: '#68516e',
    500: '#2e1137',
    950: '#000000',
  },
}
SCSS
$custom: #2e1137;
$custom-light: #68516e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1137",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 55
  },
  "hsl": {
    "h": 285.789,
    "s": 52.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24199,
    "c": 0.07671,
    "h": 317.5
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#2E1137
secondary
#427034
accent
#DC4C6E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1137

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

Preview Lab → · Contrast checker → · Palette generator →

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