#2A072B#2A072B

#2A072B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.078 H 326.7°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#2A072B
RGBrgb(42, 7, 43)
HSLhsl(298, 72%, 10%)
HSVhsv(298, 84%, 17%)
CMYKcmyk(2.3%, 83.7%, 0%, 83.1%)
CIE-LABlab(7.40, 23.64, -15.47)
CIE-LCHlch(7.40, 28.26, 326.80°)
OKLaboklab(21.18% 0.0655 -0.043)
OKLCHoklch(21.18% 0.078 326.7)
XYZxyz(1.4668, 0.8187, 2.3658)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A072B #082B07
analogous
#18072B #2A072B #2B071A
triadic
#2A072B #2B2A07 #072B2A
tetradic
#2A072B #2B1807 #082B07 #071A2B
square
#2A072B #2B1807 #082B07 #071A2B
split-complementary
#2A072B #1A2B07 #072B18
monochromatic
#1A041A #1A041A #2A072B #5D1060 #911894

Accessibility & contrast

On white

18.04
#2A072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A072B
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A072B#FFFFFF#000000##FFFFFF
##2A072B1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132C
Deuteranopia (green-blind)
#0F182A
Tritanopia (blue-blind)
#2B0C18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a072b;
/* rgb */ color: rgb(42, 7, 43);
/* oklch */ color: oklch(21.2% 0.078 326.7);
Tailwind
colors: {
  custom: {
    50: '#654a64',
    500: '#2a072b',
    950: '#000000',
  },
}
SCSS
$custom: #2a072b;
$custom-light: #654a64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a072b",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 298.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21177,
    "c": 0.07837,
    "h": 326.7
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#2A072B
secondary
#256B23
accent
#EF393E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2A072B

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

Preview Lab → · Contrast checker → · Palette generator →

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