#2A012B#2A012B

#2A012B is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.2% C 0.091 H 327.3°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#2A012B
RGBrgb(42, 1, 43)
HSLhsl(299, 95%, 9%)
HSVhsv(299, 98%, 17%)
CMYKcmyk(2.3%, 97.7%, 0%, 83.1%)
CIE-LABlab(6.22, 26.84, -17.33)
CIE-LCHlch(6.22, 31.95, 327.15°)
OKLaboklab(20.24% 0.0762 -0.049)
OKLCHoklch(20.24% 0.091 327.3)
XYZxyz(1.4017, 0.6885, 2.3441)
Luminance0.0069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A012B #022B01
analogous
#15012B #2A012B #2B0117
triadic
#2A012B #2B2A01 #012B2A
tetradic
#2A012B #2B1501 #022B01 #01172B
square
#2A012B #2B1501 #022B01 #01172B
split-complementary
#2A012B #172B01 #012B15
monochromatic
#1D011E #1D011E #2A012B #640267 #9F04A3

Accessibility & contrast

On white

18.46
#2A012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A012B
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A012B#FFFFFF#000000##FFFFFF
##2A012B1.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#0B162A
Tritanopia (blue-blind)
#2C0715
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a012b;
/* rgb */ color: rgb(42, 1, 43);
/* oklch */ color: oklch(20.2% 0.091 327.3);
Tailwind
colors: {
  custom: {
    50: '#664764',
    500: '#2a012b',
    950: '#000000',
  },
}
SCSS
$custom: #2a012b;
$custom-light: #664764;
$custom-dark: #000000;
JSON
{
  "hex": "#2a012b",
  "rgb": {
    "r": 42,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 298.571,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20244,
    "c": 0.09055,
    "h": 327.3
  },
  "luminance": 0.00688
}

Semantic roles & 50–950 ramp

primary
#2A012B
secondary
#197117
accent
#FF292E
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060005
muted
#7A777A

Preview Lab

Preview with #2A012B

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

Preview Lab → · Contrast checker → · Palette generator →

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