#2D012E#2D012E

#2D012E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.095 H 327.3°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#2D012E
RGBrgb(45, 1, 46)
HSLhsl(299, 96%, 9%)
HSVhsv(299, 98%, 18%)
CMYKcmyk(2.2%, 97.8%, 0%, 82%)
CIE-LABlab(7.02, 28.56, -18.28)
CIE-LCHlch(7.02, 33.90, 327.38°)
OKLaboklab(21.08% 0.0797 -0.0511)
OKLCHoklch(21.08% 0.095 327.3)
XYZxyz(1.5862, 0.7770, 2.6507)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D012E #022E01
analogous
#17012E #2D012E #2E0119
triadic
#2D012E #2E2D01 #012E2D
tetradic
#2D012E #2E1701 #022E01 #01192E
square
#2D012E #2E1701 #022E01 #01192E
split-complementary
#2D012E #192E01 #012E17
monochromatic
#1D011E #1D011E #2D012E #68026A #A204A6

Accessibility & contrast

On white

18.18
#2D012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2D012E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D012E
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D012E#FFFFFF#000000##FFFFFF
##2D012E1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#0C182D
Tritanopia (blue-blind)
#2F0717
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2d012e;
/* rgb */ color: rgb(45, 1, 46);
/* oklch */ color: oklch(21.1% 0.095 327.3);
Tailwind
colors: {
  custom: {
    50: '#684767',
    500: '#2d012e',
    950: '#000000',
  },
}
SCSS
$custom: #2d012e;
$custom-light: #684767;
$custom-dark: #000000;
JSON
{
  "hex": "#2d012e",
  "rgb": {
    "r": 45,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 298.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.21083,
    "c": 0.09463,
    "h": 327.3
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#2D012E
secondary
#197417
accent
#FF292E
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2D012E

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

Preview Lab → · Contrast checker → · Palette generator →

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