#2A071E#2A071E

#2A071E is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.3% C 0.066 H 344.1°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#2A071E
RGBrgb(42, 7, 30)
HSLhsl(321, 71%, 10%)
HSVhsv(321, 83%, 16%)
CMYKcmyk(0%, 83.3%, 28.6%, 83.5%)
CIE-LABlab(6.67, 20.79, -6.68)
CIE-LCHlch(6.67, 21.84, 342.20°)
OKLaboklab(20.34% 0.0637 -0.0182)
OKLCHoklch(20.34% 0.066 344.1)
XYZxyz(1.2652, 0.7381, 1.3039)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A071E #072A13
analogous
#25072A #2A071E #2A070D
triadic
#2A071E #1E2A07 #071E2A
tetradic
#2A071E #2A2507 #072A13 #070D2A
square
#2A071E #2A2507 #072A13 #070D2A
split-complementary
#2A071E #0D2A07 #072A25
monochromatic
#1A0413 #1A0413 #2A071E #5E1043 #931869

Accessibility & contrast

On white

18.30
#2A071E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A071E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A071E
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A071E#FFFFFF#000000##FFFFFF
##2A071E1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A111F
Deuteranopia (green-blind)
#15171D
Tritanopia (blue-blind)
#2D0711
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a071e;
/* rgb */ color: rgb(42, 7, 30);
/* oklch */ color: oklch(20.3% 0.066 344.1);
Tailwind
colors: {
  custom: {
    50: '#654a59',
    500: '#2a071e',
    950: '#000000',
  },
}
SCSS
$custom: #2a071e;
$custom-light: #654a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a071e",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 30
  },
  "hsl": {
    "h": 320.571,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20343,
    "c": 0.06621,
    "h": 344.1
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#2A071E
secondary
#236A3B
accent
#EE783A
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#060103
muted
#7A7778

Preview Lab

Preview with #2A071E

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

Preview Lab → · Contrast checker → · Palette generator →

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