#40071B#40071B

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

Color values

HEX#40071B
RGBrgb(64, 7, 27)
HSLhsl(339, 80%, 14%)
HSVhsv(339, 89%, 25%)
CMYKcmyk(0%, 89.1%, 57.8%, 74.9%)
CIE-LABlab(11.42, 28.24, 3.20)
CIE-LCHlch(11.42, 28.42, 6.46°)
OKLaboklab(24.77% 0.0863 0.0084)
OKLCHoklch(24.77% 0.087 5.5)
XYZxyz(2.3884, 1.3214, 1.1660)
Luminance0.0132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40071B #07402C
analogous
#400738 #40071B #401007
triadic
#40071B #1B4007 #071B40
tetradic
#40071B #384007 #07402C #100740
square
#40071B #384007 #07402C #100740
split-complementary
#40071B #074010 #073840
monochromatic
#1C030C #1C030C #40071B #770D32 #AE134A

Accessibility & contrast

On white

16.61
#40071B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#40071B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40071B
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40071B#FFFFFF#000000##FFFFFF
##40071B1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16171B
Deuteranopia (green-blind)
#25221A
Tritanopia (blue-blind)
#470010
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40071b;
/* rgb */ color: rgb(64, 7, 27);
/* oklch */ color: oklch(24.8% 0.087 5.5);
Tailwind
colors: {
  custom: {
    50: '#794d56',
    500: '#40071b',
    950: '#000000',
  },
}
SCSS
$custom: #40071b;
$custom-light: #794d56;
$custom-dark: #000000;
JSON
{
  "hex": "#40071b",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 27
  },
  "hsl": {
    "h": 338.947,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24769,
    "c": 0.08675,
    "h": 5.5
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#40071B
secondary
#247F5F
accent
#F7B131
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0203
muted
#7C7878

Preview Lab

Preview with #40071B

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

Preview Lab → · Contrast checker → · Palette generator →

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