#40041F#40041F

#40041F is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.6% C 0.092 H 359.7°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#40041F
RGBrgb(64, 4, 31)
HSLhsl(333, 88%, 13%)
HSVhsv(333, 94%, 25%)
CMYKcmyk(0%, 93.8%, 51.6%, 74.9%)
CIE-LABlab(11.11, 29.95, -0.29)
CIE-LCHlch(11.11, 29.96, 359.44°)
OKLaboklab(24.58% 0.0922 -0.0004)
OKLCHoklch(24.58% 0.092 359.7)
XYZxyz(2.4053, 1.2761, 1.4157)
Luminance0.0128 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40041F #044025
analogous
#40043D #40041F #400704
triadic
#40041F #1F4004 #041F40
tetradic
#40041F #3D4004 #044025 #070440
square
#40041F #3D4004 #044025 #070440
split-complementary
#40041F #044007 #043D40
monochromatic
#1D020E #1D020E #40041F #7A083B #B30B57

Accessibility & contrast

On white

16.73
#40041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#40041F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40041F
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40041F#FFFFFF#000000##FFFFFF
##40041F1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131620
Deuteranopia (green-blind)
#23221E
Tritanopia (blue-blind)
#460010
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40041f;
/* rgb */ color: rgb(64, 4, 31);
/* oklch */ color: oklch(24.6% 0.092 359.7);
Tailwind
colors: {
  custom: {
    50: '#794c5a',
    500: '#40041f',
    950: '#000000',
  },
}
SCSS
$custom: #40041f;
$custom-light: #794c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#40041f",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 333,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24581,
    "c": 0.09222,
    "h": 359.7
  },
  "luminance": 0.01276
}

Semantic roles & 50–950 ramp

primary
#40041F
secondary
#1F8155
accent
#FE9F29
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090103
muted
#7B7778

Preview Lab

Preview with #40041F

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

Preview Lab → · Contrast checker → · Palette generator →

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