#2A021F#2A021F

#2A021F is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 19.6% C 0.078 H 341.3°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#2A021F
RGBrgb(42, 2, 31)
HSLhsl(317, 91%, 9%)
HSVhsv(317, 95%, 16%)
CMYKcmyk(0%, 95.2%, 26.2%, 83.5%)
CIE-LABlab(5.73, 23.52, -8.87)
CIE-LCHlch(5.73, 25.13, 339.34°)
OKLaboklab(19.56% 0.074 -0.0251)
OKLCHoklch(19.56% 0.078 341.3)
XYZxyz(1.2239, 0.6347, 1.3541)
Luminance0.0063 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A021F #022A0D
analogous
#21022A #2A021F #2A020B
triadic
#2A021F #1F2A02 #021F2A
tetradic
#2A021F #2A2102 #022A0D #020B2A
square
#2A021F #2A2102 #022A0D #020B2A
split-complementary
#2A021F #0B2A02 #022A21
monochromatic
#1D0116 #1D0116 #2A021F #64054A #9F0875

Accessibility & contrast

On white

18.63
#2A021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#2A021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A021F
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A021F#FFFFFF#000000##FFFFFF
##2A021F1.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040E20
Deuteranopia (green-blind)
#12151E
Tritanopia (blue-blind)
#2D030F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #2a021f;
/* rgb */ color: rgb(42, 2, 31);
/* oklch */ color: oklch(19.6% 0.078 341.3);
Tailwind
colors: {
  custom: {
    50: '#65475a',
    500: '#2a021f',
    950: '#000000',
  },
}
SCSS
$custom: #2a021f;
$custom-light: #65475a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a021f",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 316.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19558,
    "c": 0.07814,
    "h": 341.3
  },
  "luminance": 0.00635
}

Semantic roles & 50–950 ramp

primary
#2A021F
secondary
#196F30
accent
#FF6429
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060003
muted
#7A7778

Preview Lab

Preview with #2A021F

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

Preview Lab → · Contrast checker → · Palette generator →

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