#2E0239#2E0239

#2E0239 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.103 H 318.4°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#2E0239
RGBrgb(46, 2, 57)
HSLhsl(288, 93%, 12%)
HSVhsv(288, 96%, 22%)
CMYKcmyk(19.3%, 96.5%, 0%, 77.6%)
CIE-LABlab(8.30, 30.62, -24.29)
CIE-LCHlch(8.30, 39.09, 321.57°)
OKLaboklab(22.34% 0.0772 -0.0685)
OKLCHoklch(22.34% 0.103 318.4)
XYZxyz(1.8868, 0.9198, 3.9482)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0239 #0D3902
analogous
#130239 #2E0239 #390229
triadic
#2E0239 #392E02 #02392E
tetradic
#2E0239 #391302 #0D3902 #022939
square
#2E0239 #391302 #0D3902 #022939
split-complementary
#2E0239 #293902 #023913
monochromatic
#18011E #18011E #2E0239 #5E0474 #8D06AF

Accessibility & contrast

On white

17.74
#2E0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2E0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0239
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0239#FFFFFF#000000##FFFFFF
##2E02391.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#041938
Tritanopia (blue-blind)
#2E0E1E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2e0239;
/* rgb */ color: rgb(46, 2, 57);
/* oklch */ color: oklch(22.3% 0.103 318.4);
Tailwind
colors: {
  custom: {
    50: '#6a4970',
    500: '#2e0239',
    950: '#000000',
  },
}
SCSS
$custom: #2e0239;
$custom-light: #6a4970;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0239",
  "rgb": {
    "r": 46,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 288,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22342,
    "c": 0.10319,
    "h": 318.4
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#2E0239
secondary
#2E7D1A
accent
#FF2954
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #2E0239

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

Preview Lab → · Contrast checker → · Palette generator →

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