#40071D#40071D

#40071D is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.8% C 0.087 H 3.2°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#40071D
RGBrgb(64, 7, 29)
HSLhsl(337, 80%, 14%)
HSVhsv(337, 89%, 25%)
CMYKcmyk(0%, 89.1%, 54.7%, 74.9%)
CIE-LABlab(11.49, 28.44, 1.78)
CIE-LCHlch(11.49, 28.50, 3.58°)
OKLaboklab(24.84% 0.0872 0.0049)
OKLCHoklch(24.84% 0.087 3.2)
XYZxyz(2.4123, 1.3310, 1.2920)
Luminance0.0133 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40071D #07402A
analogous
#40073A #40071D #400E07
triadic
#40071D #1D4007 #071D40
tetradic
#40071D #3A4007 #07402A #0E0740
square
#40071D #3A4007 #07402A #0E0740
split-complementary
#40071D #07400E #073A40
monochromatic
#1C030C #1C030C #40071D #770D36 #AE134F

Accessibility & contrast

On white

16.59
#40071D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40071D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40071D
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40071D#FFFFFF#000000##FFFFFF
##40071D1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15171D
Deuteranopia (green-blind)
#24221C
Tritanopia (blue-blind)
#460011
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40071d;
/* rgb */ color: rgb(64, 7, 29);
/* oklch */ color: oklch(24.8% 0.087 3.2);
Tailwind
colors: {
  custom: {
    50: '#794d58',
    500: '#40071d',
    950: '#000000',
  },
}
SCSS
$custom: #40071d;
$custom-light: #794d58;
$custom-dark: #000000;
JSON
{
  "hex": "#40071d",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 29
  },
  "hsl": {
    "h": 336.842,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24839,
    "c": 0.08734,
    "h": 3.2
  },
  "luminance": 0.01331
}

Semantic roles & 50–950 ramp

primary
#40071D
secondary
#247F5C
accent
#F7AA31
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40071D

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

Preview Lab → · Contrast checker → · Palette generator →

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