#2E0837#2E0837

#2E0837 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.092 H 319.1°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#2E0837
RGBrgb(46, 8, 55)
HSLhsl(289, 75%, 12%)
HSVhsv(289, 85%, 22%)
CMYKcmyk(16.4%, 85.5%, 0%, 78.4%)
CIE-LABlab(9.24, 26.97, -21.33)
CIE-LCHlch(9.24, 34.38, 321.66°)
OKLaboklab(22.95% 0.0692 -0.0599)
OKLCHoklch(22.95% 0.092 319.1)
XYZxyz(1.9030, 1.0304, 3.7123)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0837 #113708
analogous
#170837 #2E0837 #370828
triadic
#2E0837 #372E08 #08372E
tetradic
#2E0837 #371708 #113708 #082837
square
#2E0837 #371708 #113708 #082837
split-complementary
#2E0837 #283708 #083717
monochromatic
#16041B #16041B #2E0837 #5B106C #8718A2

Accessibility & contrast

On white

17.41
#2E0837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0837
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0837#FFFFFF#000000##FFFFFF
##2E08371.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#0B1B36
Tritanopia (blue-blind)
#2E111F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2e0837;
/* rgb */ color: rgb(46, 8, 55);
/* oklch */ color: oklch(22.9% 0.092 319.1);
Tailwind
colors: {
  custom: {
    50: '#694c6e',
    500: '#2e0837',
    950: '#000000',
  },
}
SCSS
$custom: #2e0837;
$custom-light: #694c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0837",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 288.511,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2295,
    "c": 0.09151,
    "h": 319.1
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#2E0837
secondary
#347625
accent
#F1375A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2E0837

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

Preview Lab → · Contrast checker → · Palette generator →

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