#2E0838#2E0838

#2E0838 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.093 H 318.3°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#2E0838
RGBrgb(46, 8, 56)
HSLhsl(288, 75%, 13%)
HSVhsv(288, 86%, 22%)
CMYKcmyk(17.9%, 85.7%, 0%, 78%)
CIE-LABlab(9.32, 27.20, -21.93)
CIE-LCHlch(9.32, 34.94, 321.13°)
OKLaboklab(23.03% 0.0691 -0.0616)
OKLCHoklch(23.03% 0.093 318.3)
XYZxyz(1.9273, 1.0401, 3.8399)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0838 #123808
analogous
#160838 #2E0838 #38082A
triadic
#2E0838 #382E08 #08382E
tetradic
#2E0838 #381608 #123808 #082A38
square
#2E0838 #381608 #123808 #082A38
split-complementary
#2E0838 #2A3808 #083816
monochromatic
#16041B #16041B #2E0838 #5A106E #8617A3

Accessibility & contrast

On white

17.38
#2E0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0838
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0838#FFFFFF#000000##FFFFFF
##2E08381.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0A1B37
Tritanopia (blue-blind)
#2E121F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2e0838;
/* rgb */ color: rgb(46, 8, 56);
/* oklch */ color: oklch(23.0% 0.093 318.3);
Tailwind
colors: {
  custom: {
    50: '#694c6f',
    500: '#2e0838',
    950: '#000000',
  },
}
SCSS
$custom: #2e0838;
$custom-light: #694c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0838",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 287.5,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23031,
    "c": 0.09258,
    "h": 318.3
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#2E0838
secondary
#367725
accent
#F2365D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2E0838

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

Preview Lab → · Contrast checker → · Palette generator →

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