#2E0540#2E0540

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

Color values

HEX#2E0540
RGBrgb(46, 5, 64)
HSLhsl(282, 86%, 14%)
HSVhsv(282, 92%, 25%)
CMYKcmyk(28.1%, 92.2%, 0%, 74.9%)
CIE-LABlab(9.48, 30.62, -27.42)
CIE-LCHlch(9.48, 41.10, 318.16°)
OKLaboklab(23.36% 0.0712 -0.0777)
OKLCHoklch(23.36% 0.105 312.5)
XYZxyz(2.1062, 1.0596, 4.9431)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0540 #174005
analogous
#100540 #2E0540 #400534
triadic
#2E0540 #402E05 #05402E
tetradic
#2E0540 #401005 #174005 #053440
square
#2E0540 #401005 #174005 #053440
split-complementary
#2E0540 #344005 #054010
monochromatic
#14021C #14021C #2E0540 #570979 #800EB2

Accessibility & contrast

On white

17.33
#2E0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0540
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0540#FFFFFF#000000##FFFFFF
##2E05401.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#2C1423
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2e0540;
/* rgb */ color: rgb(46, 5, 64);
/* oklch */ color: oklch(23.4% 0.105 312.5);
Tailwind
colors: {
  custom: {
    50: '#6a4b75',
    500: '#2e0540',
    950: '#000000',
  },
}
SCSS
$custom: #2e0540;
$custom-light: #6a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0540",
  "rgb": {
    "r": 46,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 281.695,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23357,
    "c": 0.10541,
    "h": 312.5
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#2E0540
secondary
#3E8120
accent
#FC2C6B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0540

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

Preview Lab → · Contrast checker → · Palette generator →

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