#2E0840#2E0840

#2E0840 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.101 H 311.9°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2E0840
RGBrgb(46, 8, 64)
HSLhsl(281, 78%, 14%)
HSVhsv(281, 88%, 25%)
CMYKcmyk(28.1%, 87.5%, 0%, 74.9%)
CIE-LABlab(9.99, 29.14, -26.59)
CIE-LCHlch(9.99, 39.44, 317.62°)
OKLaboklab(23.72% 0.0677 -0.0753)
OKLCHoklch(23.72% 0.101 311.9)
XYZxyz(2.1388, 1.1247, 4.9539)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0840 #1A4008
analogous
#120840 #2E0840 #400836
triadic
#2E0840 #402E08 #08402E
tetradic
#2E0840 #401208 #1A4008 #083640
square
#2E0840 #401208 #1A4008 #083640
split-complementary
#2E0840 #364008 #084012
monochromatic
#14031B #14031B #2E0840 #550F76 #7C16AD

Accessibility & contrast

On white

17.14
#2E0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2E0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0840
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0840#FFFFFF#000000##FFFFFF
##2E08401.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#2C1524
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0840;
/* rgb */ color: rgb(46, 8, 64);
/* oklch */ color: oklch(23.7% 0.101 311.9);
Tailwind
colors: {
  custom: {
    50: '#6a4c75',
    500: '#2e0840',
    950: '#000000',
  },
}
SCSS
$custom: #2e0840;
$custom-light: #6a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0840",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 280.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23716,
    "c": 0.10122,
    "h": 311.9
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#2E0840
secondary
#427E25
accent
#F43471
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0840

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

Preview Lab → · Contrast checker → · Palette generator →

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