#2E0839#2E0839

#2E0839 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.1% C 0.094 H 317.4°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#2E0839
RGBrgb(46, 8, 57)
HSLhsl(287, 75%, 13%)
HSVhsv(287, 86%, 22%)
CMYKcmyk(19.3%, 86%, 0%, 77.6%)
CIE-LABlab(9.40, 27.44, -22.52)
CIE-LCHlch(9.40, 35.50, 320.62°)
OKLaboklab(23.11% 0.069 -0.0633)
OKLCHoklch(23.11% 0.094 317.4)
XYZxyz(1.9520, 1.0500, 3.9700)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0839 #133908
analogous
#160839 #2E0839 #39082B
triadic
#2E0839 #392E08 #08392E
tetradic
#2E0839 #391608 #133908 #082B39
square
#2E0839 #391608 #133908 #082B39
split-complementary
#2E0839 #2B3908 #083916
monochromatic
#16041B #16041B #2E0839 #59106F #8517A4

Accessibility & contrast

On white

17.36
#2E0839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2E0839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0839
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0839#FFFFFF#000000##FFFFFF
##2E08391.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#091B38
Tritanopia (blue-blind)
#2E1220
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2e0839;
/* rgb */ color: rgb(46, 8, 57);
/* oklch */ color: oklch(23.1% 0.094 317.4);
Tailwind
colors: {
  custom: {
    50: '#694c70',
    500: '#2e0839',
    950: '#000000',
  },
}
SCSS
$custom: #2e0839;
$custom-light: #694c70;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0839",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 286.531,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23113,
    "c": 0.09365,
    "h": 317.4
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#2E0839
secondary
#387825
accent
#F23660
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2E0839

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

Preview Lab → · Contrast checker → · Palette generator →

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