#2E1039#2E1039

#2E1039 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.081 H 315.9°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#2E1039
RGBrgb(46, 16, 57)
HSLhsl(284, 56%, 14%)
HSVhsv(284, 72%, 22%)
CMYKcmyk(19.3%, 71.9%, 0%, 77.6%)
CIE-LABlab(10.90, 23.24, -20.12)
CIE-LCHlch(10.90, 30.75, 319.12°)
OKLaboklab(24.19% 0.0581 -0.0564)
OKLCHoklch(24.19% 0.081 315.9)
XYZxyz(2.0504, 1.2469, 4.0028)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1039 #1B3910
analogous
#1A1039 #2E1039 #391030
triadic
#2E1039 #392E10 #10392E
tetradic
#2E1039 #391A10 #1B3910 #103039
square
#2E1039 #391A10 #1B3910 #103039
split-complementary
#2E1039 #303910 #10391A
monochromatic
#130718 #130718 #2E1039 #551D69 #7B2B99

Accessibility & contrast

On white

16.81
#2E1039 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1039
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1039#FFFFFF#000000##FFFFFF
##2E10391.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B3A
Deuteranopia (green-blind)
#101E38
Tritanopia (blue-blind)
#2D1722
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2e1039;
/* rgb */ color: rgb(46, 16, 57);
/* oklch */ color: oklch(24.2% 0.081 315.9);
Tailwind
colors: {
  custom: {
    50: '#68506f',
    500: '#2e1039',
    950: '#000000',
  },
}
SCSS
$custom: #2e1039;
$custom-light: #68506f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1039",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 57
  },
  "hsl": {
    "h": 283.902,
    "s": 56.164,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24188,
    "c": 0.08099,
    "h": 315.9
  },
  "luminance": 0.01247
}

Semantic roles & 50–950 ramp

primary
#2E1039
secondary
#437332
accent
#DF4871
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E1039

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

Preview Lab → · Contrast checker → · Palette generator →

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