#2A0212#2A0212

#2A0212 is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 18.9% C 0.070 H 0.4°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#2A0212
RGBrgb(42, 2, 18)
HSLhsl(336, 91%, 9%)
HSVhsv(336, 95%, 16%)
CMYKcmyk(0%, 95.2%, 57.1%, 83.5%)
CIE-LABlab(5.23, 21.08, 0.06)
CIE-LCHlch(5.23, 21.08, 0.16°)
OKLaboklab(18.88% 0.0702 0.0005)
OKLCHoklch(18.88% 0.07 0.4)
XYZxyz(1.0858, 0.5795, 0.6268)
Luminance0.0058 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0212 #022A1A
analogous
#2A0226 #2A0212 #2A0602
triadic
#2A0212 #122A02 #02122A
tetradic
#2A0212 #262A02 #022A1A #06022A
square
#2A0212 #262A02 #022A1A #06022A
split-complementary
#2A0212 #022A06 #02262A
monochromatic
#1D010D #1D010D #2A0212 #64052B #9F0844

Accessibility & contrast

On white

18.82
#2A0212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#2A0212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0212
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0212#FFFFFF#000000##FFFFFF
##2A02121.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A0C12
Deuteranopia (green-blind)
#151411
Tritanopia (blue-blind)
#2F0008
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #2a0212;
/* rgb */ color: rgb(42, 2, 18);
/* oklch */ color: oklch(18.9% 0.070 0.4);
Tailwind
colors: {
  custom: {
    50: '#664750',
    500: '#2a0212',
    950: '#000000',
  },
}
SCSS
$custom: #2a0212;
$custom-light: #664750;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0212",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 336,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18883,
    "c": 0.07015,
    "h": 0.4
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#2A0212
secondary
#196F4D
accent
#FFA929
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060002
muted
#7A7778

Preview Lab

Preview with #2A0212

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

Preview Lab → · Contrast checker → · Palette generator →

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