#40041D#40041D

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

Color values

HEX#40041D
RGBrgb(64, 4, 29)
HSLhsl(335, 88%, 13%)
HSVhsv(335, 94%, 25%)
CMYKcmyk(0%, 93.8%, 54.7%, 74.9%)
CIE-LABlab(11.03, 29.74, 1.12)
CIE-LCHlch(11.03, 29.76, 2.16°)
OKLaboklab(24.51% 0.0914 0.0032)
OKLCHoklch(24.51% 0.091 2)
XYZxyz(2.3797, 1.2659, 1.2812)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40041D #044027
analogous
#40043B #40041D #400904
triadic
#40041D #1D4004 #041D40
tetradic
#40041D #3B4004 #044027 #090440
square
#40041D #3B4004 #044027 #090440
split-complementary
#40041D #044009 #043B40
monochromatic
#1D020D #1D020D #40041D #7A0837 #B30B51

Accessibility & contrast

On white

16.76
#40041D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40041D
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40041D#FFFFFF#000000##FFFFFF
##40041D1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13161E
Deuteranopia (green-blind)
#23221C
Tritanopia (blue-blind)
#46000F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40041d;
/* rgb */ color: rgb(64, 4, 29);
/* oklch */ color: oklch(24.5% 0.091 2.0);
Tailwind
colors: {
  custom: {
    50: '#794c58',
    500: '#40041d',
    950: '#000000',
  },
}
SCSS
$custom: #40041d;
$custom-light: #794c58;
$custom-dark: #000000;
JSON
{
  "hex": "#40041d",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 29
  },
  "hsl": {
    "h": 335,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24505,
    "c": 0.09147,
    "h": 2
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#40041D
secondary
#1F8158
accent
#FEA629
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40041D

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

Preview Lab → · Contrast checker → · Palette generator →

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