#2A072C#2A072C

#2A072C is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.3% C 0.079 H 325.6°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#2A072C
RGBrgb(42, 7, 44)
HSLhsl(297, 73%, 10%)
HSVhsv(297, 84%, 17%)
CMYKcmyk(4.5%, 84.1%, 0%, 82.7%)
CIE-LABlab(7.46, 23.88, -16.12)
CIE-LCHlch(7.46, 28.81, 325.98°)
OKLaboklab(21.25% 0.0655 -0.0448)
OKLCHoklch(21.25% 0.079 325.6)
XYZxyz(1.4854, 0.8261, 2.4636)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A072C #092C07
analogous
#18072C #2A072C #2C071B
triadic
#2A072C #2C2A07 #072C2A
tetradic
#2A072C #2C1807 #092C07 #071B2C
square
#2A072C #2C1807 #092C07 #071B2C
split-complementary
#2A072C #1B2C07 #072C18
monochromatic
#19041A #19041A #2A072C #5C0F61 #8F1896

Accessibility & contrast

On white

18.02
#2A072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A072C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A072C
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A072C#FFFFFF#000000##FFFFFF
##2A072C1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142D
Deuteranopia (green-blind)
#0F182B
Tritanopia (blue-blind)
#2B0D18
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2a072c;
/* rgb */ color: rgb(42, 7, 44);
/* oklch */ color: oklch(21.3% 0.079 325.6);
Tailwind
colors: {
  custom: {
    50: '#654a65',
    500: '#2a072c',
    950: '#000000',
  },
}
SCSS
$custom: #2a072c;
$custom-light: #654a65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a072c",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 296.757,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.21251,
    "c": 0.0794,
    "h": 325.6
  },
  "luminance": 0.00826
}

Semantic roles & 50–950 ramp

primary
#2A072C
secondary
#276C23
accent
#EF3942
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2A072C

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

Preview Lab → · Contrast checker → · Palette generator →

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