#2E012A#2E012A

#2E012A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.092 H 332.3°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#2E012A
RGBrgb(46, 1, 42)
HSLhsl(305, 96%, 9%)
HSVhsv(305, 98%, 18%)
CMYKcmyk(0%, 97.8%, 8.7%, 82%)
CIE-LABlab(6.95, 28.00, -15.36)
CIE-LCHlch(6.95, 31.94, 331.25°)
OKLaboklab(20.98% 0.0812 -0.0426)
OKLCHoklch(20.98% 0.092 332.3)
XYZxyz(1.5555, 0.7699, 2.2567)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E012A #012E05
analogous
#1C012E #2E012A #2E0114
triadic
#2E012A #2A2E01 #012A2E
tetradic
#2E012A #2E1C01 #012E05 #01142E
square
#2E012A #2E1C01 #012E05 #01142E
split-complementary
#2E012A #142E01 #012E1C
monochromatic
#1E011B #1E011B #2E012A #6A0261 #A60497

Accessibility & contrast

On white

18.20
#2E012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2E012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E012A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E012A#FFFFFF#000000##FFFFFF
##2E012A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#101829
Tritanopia (blue-blind)
#310515
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2e012a;
/* rgb */ color: rgb(46, 1, 42);
/* oklch */ color: oklch(21.0% 0.092 332.3);
Tailwind
colors: {
  custom: {
    50: '#694763',
    500: '#2e012a',
    950: '#000000',
  },
}
SCSS
$custom: #2e012a;
$custom-light: #694763;
$custom-dark: #000000;
JSON
{
  "hex": "#2e012a",
  "rgb": {
    "r": 46,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 305.333,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.2098,
    "c": 0.09172,
    "h": 332.3
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#2E012A
secondary
#17741F
accent
#FF3C29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2E012A

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

Preview Lab → · Contrast checker → · Palette generator →

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