#2E0541#2E0541

#2E0541 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.4% C 0.106 H 311.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#2E0541
RGBrgb(46, 5, 65)
HSLhsl(281, 86%, 14%)
HSVhsv(281, 92%, 25%)
CMYKcmyk(29.2%, 92.3%, 0%, 74.5%)
CIE-LABlab(9.57, 30.86, -27.98)
CIE-LCHlch(9.57, 41.66, 317.80°)
OKLaboklab(23.45% 0.071 -0.0793)
OKLCHoklch(23.45% 0.106 311.8)
XYZxyz(2.1349, 1.0711, 5.0943)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0541 #184105
analogous
#100541 #2E0541 #410536
triadic
#2E0541 #412E05 #05412E
tetradic
#2E0541 #411005 #184105 #053641
square
#2E0541 #411005 #184105 #053641
split-complementary
#2E0541 #364105 #054110
monochromatic
#14021C #14021C #2E0541 #56097A #7E0EB3

Accessibility & contrast

On white

17.30
#2E0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0541
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0541#FFFFFF#000000##FFFFFF
##2E05411.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001B40
Tritanopia (blue-blind)
#2C1424
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2e0541;
/* rgb */ color: rgb(46, 5, 65);
/* oklch */ color: oklch(23.4% 0.106 311.8);
Tailwind
colors: {
  custom: {
    50: '#6a4b76',
    500: '#2e0541',
    950: '#000000',
  },
}
SCSS
$custom: #2e0541;
$custom-light: #6a4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0541",
  "rgb": {
    "r": 46,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 281,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2345,
    "c": 0.10644,
    "h": 311.8
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#2E0541
secondary
#3F8120
accent
#FC2C6E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0541

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

Preview Lab → · Contrast checker → · Palette generator →

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