#2A0217#2A0217

#2A0217 is a very dark, moderate pink. Relative luminance 0.006; OKLCH L 19.1% C 0.073 H 352.6°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#2A0217
RGBrgb(42, 2, 23)
HSLhsl(329, 91%, 9%)
HSVhsv(329, 95%, 16%)
CMYKcmyk(0%, 95.2%, 45.2%, 83.5%)
CIE-LABlab(5.40, 21.92, -3.08)
CIE-LCHlch(5.40, 22.14, 352.00°)
OKLaboklab(19.11% 0.0721 -0.0093)
OKLCHoklch(19.11% 0.073 352.6)
XYZxyz(1.1313, 0.5977, 0.8662)
Luminance0.0060 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0217 #022A15
analogous
#29022A #2A0217 #2A0203
triadic
#2A0217 #172A02 #02172A
tetradic
#2A0217 #2A2902 #022A15 #02032A
square
#2A0217 #2A2902 #022A15 #02032A
split-complementary
#2A0217 #032A02 #022A29
monochromatic
#1D0110 #1D0110 #2A0217 #640537 #9F0857

Accessibility & contrast

On white

18.76
#2A0217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0217
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0217#FFFFFF#000000##FFFFFF
##2A02171.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080D18
Deuteranopia (green-blind)
#141516
Tritanopia (blue-blind)
#2E000A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #2a0217;
/* rgb */ color: rgb(42, 2, 23);
/* oklch */ color: oklch(19.1% 0.073 352.6);
Tailwind
colors: {
  custom: {
    50: '#664753',
    500: '#2a0217',
    950: '#000000',
  },
}
SCSS
$custom: #2a0217;
$custom-light: #664753;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0217",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 23
  },
  "hsl": {
    "h": 328.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.19111,
    "c": 0.07265,
    "h": 352.6
  },
  "luminance": 0.00598
}

Semantic roles & 50–950 ramp

primary
#2A0217
secondary
#196F42
accent
#FF8F29
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060002
muted
#7A7778

Preview Lab

Preview with #2A0217

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

Preview Lab → · Contrast checker → · Palette generator →

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