#2A040F#2A040F

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

Color values

HEX#2A040F
RGBrgb(42, 4, 15)
HSLhsl(343, 83%, 9%)
HSVhsv(343, 90%, 16%)
CMYKcmyk(0%, 90.5%, 64.3%, 83.5%)
CIE-LABlab(5.54, 19.71, 2.22)
CIE-LCHlch(5.54, 19.83, 6.42°)
OKLaboklab(19.14% 0.0641 0.008)
OKLCHoklch(19.14% 0.065 7.1)
XYZxyz(1.0846, 0.6137, 0.5132)
Luminance0.0061 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A040F #042A1F
analogous
#2A0422 #2A040F #2A0C04
triadic
#2A040F #0F2A04 #040F2A
tetradic
#2A040F #222A04 #042A1F #0C042A
square
#2A040F #222A04 #042A1F #0C042A
split-complementary
#2A040F #042A0C #04222A
monochromatic
#1C030A #1C030A #2A040F #620923 #9A0F37

Accessibility & contrast

On white

18.70
#2A040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A040F
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A040F#FFFFFF#000000##FFFFFF
##2A040F1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0D0F
Deuteranopia (green-blind)
#17150E
Tritanopia (blue-blind)
#2F0008
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #2a040f;
/* rgb */ color: rgb(42, 4, 15);
/* oklch */ color: oklch(19.1% 0.065 7.1);
Tailwind
colors: {
  custom: {
    50: '#66484e',
    500: '#2a040f',
    950: '#000000',
  },
}
SCSS
$custom: #2a040f;
$custom-light: #66484e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a040f",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 342.632,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19144,
    "c": 0.0646,
    "h": 7.1
  },
  "luminance": 0.00614
}

Semantic roles & 50–950 ramp

primary
#2A040F
secondary
#1D6D56
accent
#F9BE2F
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060001
muted
#7A7777

Preview Lab

Preview with #2A040F

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

Preview Lab → · Contrast checker → · Palette generator →

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