#2A031F#2A031F

#2A031F is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 19.7% C 0.076 H 341.5°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#2A031F
RGBrgb(42, 3, 31)
HSLhsl(317, 87%, 9%)
HSVhsv(317, 93%, 16%)
CMYKcmyk(0%, 92.9%, 26.2%, 83.5%)
CIE-LABlab(5.93, 23.02, -8.57)
CIE-LCHlch(5.93, 24.56, 339.58°)
OKLaboklab(19.73% 0.0719 -0.024)
OKLCHoklch(19.73% 0.076 341.5)
XYZxyz(1.2348, 0.6564, 1.3577)
Luminance0.0066 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A031F #032A0E
analogous
#22032A #2A031F #2A030C
triadic
#2A031F #1F2A03 #031F2A
tetradic
#2A031F #2A2203 #032A0E #030C2A
square
#2A031F #2A2203 #032A0E #030C2A
split-complementary
#2A031F #0C2A03 #032A22
monochromatic
#1D0215 #1D0215 #2A031F #630749 #9C0B73

Accessibility & contrast

On white

18.56
#2A031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A031F
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A031F#FFFFFF#000000##FFFFFF
##2A031F1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a031f;
/* rgb */ color: rgb(42, 3, 31);
/* oklch */ color: oklch(19.7% 0.076 341.5);
Tailwind
colors: {
  custom: {
    50: '#65475a',
    500: '#2a031f',
    950: '#000000',
  },
}
SCSS
$custom: #2a031f;
$custom-light: #65475a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a031f",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 316.923,
    "s": 86.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.19732,
    "c": 0.07578,
    "h": 341.5
  },
  "luminance": 0.00656
}

Semantic roles & 50–950 ramp

primary
#2A031F
secondary
#1B6E32
accent
#FD662B
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060003
muted
#7A7778

Preview Lab

Preview with #2A031F

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

Preview Lab → · Contrast checker → · Palette generator →

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