#2E0440#2E0440

#2E0440 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.2% C 0.107 H 312.7°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#2E0440
RGBrgb(46, 4, 64)
HSLhsl(282, 88%, 13%)
HSVhsv(282, 94%, 25%)
CMYKcmyk(28.1%, 93.8%, 0%, 74.9%)
CIE-LABlab(9.30, 31.13, -27.70)
CIE-LCHlch(9.30, 41.67, 318.34°)
OKLaboklab(23.24% 0.0725 -0.0785)
OKLCHoklch(23.24% 0.107 312.7)
XYZxyz(2.0954, 1.0379, 4.9395)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0440 #164004
analogous
#100440 #2E0440 #400434
triadic
#2E0440 #402E04 #04402E
tetradic
#2E0440 #401004 #164004 #043440
square
#2E0440 #401004 #164004 #043440
split-complementary
#2E0440 #344004 #044010
monochromatic
#15021D #15021D #2E0440 #57087A #810BB3

Accessibility & contrast

On white

17.39
#2E0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0440
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0440#FFFFFF#000000##FFFFFF
##2E04401.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0440;
/* rgb */ color: rgb(46, 4, 64);
/* oklch */ color: oklch(23.2% 0.107 312.7);
Tailwind
colors: {
  custom: {
    50: '#6a4a75',
    500: '#2e0440',
    950: '#000000',
  },
}
SCSS
$custom: #2e0440;
$custom-light: #6a4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0440",
  "rgb": {
    "r": 46,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 282,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23235,
    "c": 0.10686,
    "h": 312.7
  },
  "luminance": 0.01038
}

Semantic roles & 50–950 ramp

primary
#2E0440
secondary
#3C811F
accent
#FE2969
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0440

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

Preview Lab → · Contrast checker → · Palette generator →

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