#40041A#40041A

#40041A is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.4% C 0.091 H 5.4°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#40041A
RGBrgb(64, 4, 26)
HSLhsl(338, 88%, 13%)
HSVhsv(338, 94%, 25%)
CMYKcmyk(0%, 93.8%, 59.4%, 74.9%)
CIE-LABlab(10.93, 29.45, 3.26)
CIE-LCHlch(10.93, 29.63, 6.32°)
OKLaboklab(24.4% 0.0901 0.0085)
OKLCHoklch(24.4% 0.091 5.4)
XYZxyz(2.3444, 1.2517, 1.0952)
Luminance0.0125 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40041A #04402A
analogous
#400438 #40041A #400C04
triadic
#40041A #1A4004 #041A40
tetradic
#40041A #384004 #04402A #0C0440
square
#40041A #384004 #04402A #0C0440
split-complementary
#40041A #04400C #043840
monochromatic
#1D020C #1D020C #40041A #7A0831 #B30B49

Accessibility & contrast

On white

16.80
#40041A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40041A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40041A
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40041A#FFFFFF#000000##FFFFFF
##40041A1.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161A
Deuteranopia (green-blind)
#242219
Tritanopia (blue-blind)
#47000E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40041a;
/* rgb */ color: rgb(64, 4, 26);
/* oklch */ color: oklch(24.4% 0.091 5.4);
Tailwind
colors: {
  custom: {
    50: '#794c56',
    500: '#40041a',
    950: '#000000',
  },
}
SCSS
$custom: #40041a;
$custom-light: #794c56;
$custom-dark: #000000;
JSON
{
  "hex": "#40041a",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 26
  },
  "hsl": {
    "h": 338,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24398,
    "c": 0.09053,
    "h": 5.4
  },
  "luminance": 0.01251
}

Semantic roles & 50–950 ramp

primary
#40041A
secondary
#1F815D
accent
#FEB029
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40041A

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

Preview Lab → · Contrast checker → · Palette generator →

#40041A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva