#2A021C#2A021C

#2A021C is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 19.4% C 0.076 H 345.3°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#2A021C
RGBrgb(42, 2, 28)
HSLhsl(321, 91%, 9%)
HSVhsv(321, 95%, 16%)
CMYKcmyk(0%, 95.2%, 33.3%, 83.5%)
CIE-LABlab(5.60, 22.89, -6.71)
CIE-LCHlch(5.60, 23.85, 343.65°)
OKLaboklab(19.38% 0.0734 -0.0192)
OKLCHoklch(19.38% 0.076 345.3)
XYZxyz(1.1862, 0.6196, 1.1555)
Luminance0.0062 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A021C #022A10
analogous
#24022A #2A021C #2A0208
triadic
#2A021C #1C2A02 #021C2A
tetradic
#2A021C #2A2402 #022A10 #02082A
square
#2A021C #2A2402 #022A10 #02082A
split-complementary
#2A021C #082A02 #022A24
monochromatic
#1D0113 #1D0113 #2A021C #640543 #9F086A

Accessibility & contrast

On white

18.69
#2A021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A021C
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A021C#FFFFFF#000000##FFFFFF
##2A021C1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060E1D
Deuteranopia (green-blind)
#13151B
Tritanopia (blue-blind)
#2E020D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #2a021c;
/* rgb */ color: rgb(42, 2, 28);
/* oklch */ color: oklch(19.4% 0.076 345.3);
Tailwind
colors: {
  custom: {
    50: '#654758',
    500: '#2a021c',
    950: '#000000',
  },
}
SCSS
$custom: #2a021c;
$custom-light: #654758;
$custom-dark: #000000;
JSON
{
  "hex": "#2a021c",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 321,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19379,
    "c": 0.07591,
    "h": 345.3
  },
  "luminance": 0.00619
}

Semantic roles & 50–950 ramp

primary
#2A021C
secondary
#196F37
accent
#FF7429
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060003
muted
#7A7778

Preview Lab

Preview with #2A021C

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

Preview Lab → · Contrast checker → · Palette generator →

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