#2E1038#2E1038

#2E1038 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.080 H 316.8°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#2E1038
RGBrgb(46, 16, 56)
HSLhsl(285, 56%, 14%)
HSVhsv(285, 71%, 22%)
CMYKcmyk(17.9%, 71.4%, 0%, 78%)
CIE-LABlab(10.83, 22.99, -19.52)
CIE-LCHlch(10.83, 30.16, 319.67°)
OKLaboklab(24.11% 0.0581 -0.0546)
OKLCHoklch(24.11% 0.08 316.8)
XYZxyz(2.0257, 1.2370, 3.8727)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1038 #1A3810
analogous
#1A1038 #2E1038 #38102E
triadic
#2E1038 #382E10 #10382E
tetradic
#2E1038 #381A10 #1A3810 #102E38
square
#2E1038 #381A10 #1A3810 #102E38
split-complementary
#2E1038 #2E3810 #10381A
monochromatic
#140718 #140718 #2E1038 #551E68 #7C2B97

Accessibility & contrast

On white

16.84
#2E1038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1038
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1038#FFFFFF#000000##FFFFFF
##2E10381.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B39
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#2E1722
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e1038;
/* rgb */ color: rgb(46, 16, 56);
/* oklch */ color: oklch(24.1% 0.080 316.8);
Tailwind
colors: {
  custom: {
    50: '#68506f',
    500: '#2e1038',
    950: '#000000',
  },
}
SCSS
$custom: #2e1038;
$custom-light: #68506f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1038",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 56
  },
  "hsl": {
    "h": 285,
    "s": 55.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24113,
    "c": 0.07976,
    "h": 316.8
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#2E1038
secondary
#427232
accent
#DF496E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1038

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

Preview Lab → · Contrast checker → · Palette generator →

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