#2E1138#2E1138

#2E1138 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.078 H 316.5°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1138
RGBrgb(46, 17, 56)
HSLhsl(285, 53%, 14%)
HSVhsv(285, 70%, 22%)
CMYKcmyk(17.9%, 69.6%, 0%, 78%)
CIE-LABlab(11.04, 22.40, -19.17)
CIE-LCHlch(11.04, 29.48, 319.44°)
OKLaboklab(24.27% 0.0566 -0.0536)
OKLCHoklch(24.27% 0.078 316.5)
XYZxyz(2.0409, 1.2673, 3.8777)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1138 #1B3811
analogous
#1B1138 #2E1138 #38112F
triadic
#2E1138 #382E11 #11382E
tetradic
#2E1138 #381B11 #1B3811 #112F38
square
#2E1138 #381B11 #1B3811 #112F38
split-complementary
#2E1138 #2F3811 #11381B
monochromatic
#130717 #130717 #2E1138 #551F67 #7B2E96

Accessibility & contrast

On white

16.75
#2E1138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1138
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1138#FFFFFF#000000##FFFFFF
##2E11381.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C39
Deuteranopia (green-blind)
#121E37
Tritanopia (blue-blind)
#2E1822
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2e1138;
/* rgb */ color: rgb(46, 17, 56);
/* oklch */ color: oklch(24.3% 0.078 316.5);
Tailwind
colors: {
  custom: {
    50: '#68516f',
    500: '#2e1138',
    950: '#000000',
  },
}
SCSS
$custom: #2e1138;
$custom-light: #68516f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1138",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 284.615,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24271,
    "c": 0.07795,
    "h": 316.5
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#2E1138
secondary
#437134
accent
#DD4B70
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1138

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

Preview Lab → · Contrast checker → · Palette generator →

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