#2A012D#2A012D

#2A012D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.092 H 325.3°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#2A012D
RGBrgb(42, 1, 45)
HSLhsl(296, 96%, 9%)
HSVhsv(296, 98%, 18%)
CMYKcmyk(6.7%, 97.8%, 0%, 82.4%)
CIE-LABlab(6.35, 27.34, -18.62)
CIE-LCHlch(6.35, 33.08, 325.75°)
OKLaboklab(20.41% 0.0759 -0.0526)
OKLCHoklch(20.41% 0.092 325.3)
XYZxyz(1.4393, 0.7035, 2.5421)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A012D #042D01
analogous
#14012D #2A012D #2D011A
triadic
#2A012D #2D2A01 #012D2A
tetradic
#2A012D #2D1401 #042D01 #011A2D
square
#2A012D #2D1401 #042D01 #011A2D
split-complementary
#2A012D #1A2D01 #012D14
monochromatic
#1C011E #1C011E #2A012D #620269 #9A04A5

Accessibility & contrast

On white

18.41
#2A012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2A012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A012D
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A012D#FFFFFF#000000##FFFFFF
##2A012D1.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#09162C
Tritanopia (blue-blind)
#2B0817
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a012d;
/* rgb */ color: rgb(42, 1, 45);
/* oklch */ color: oklch(20.4% 0.092 325.3);
Tailwind
colors: {
  custom: {
    50: '#664766',
    500: '#2a012d',
    950: '#000000',
  },
}
SCSS
$custom: #2a012d;
$custom-light: #664766;
$custom-dark: #000000;
JSON
{
  "hex": "#2a012d",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 295.909,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.20407,
    "c": 0.09232,
    "h": 325.3
  },
  "luminance": 0.00703
}

Semantic roles & 50–950 ramp

primary
#2A012D
secondary
#1D7317
accent
#FF2937
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A012D

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

Preview Lab → · Contrast checker → · Palette generator →

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