#40071A#40071A

#40071A is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.7% C 0.086 H 6.7°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#40071A
RGBrgb(64, 7, 26)
HSLhsl(340, 80%, 14%)
HSVhsv(340, 89%, 25%)
CMYKcmyk(0%, 89.1%, 59.4%, 74.9%)
CIE-LABlab(11.39, 28.14, 3.91)
CIE-LCHlch(11.39, 28.41, 7.92°)
OKLaboklab(24.74% 0.0859 0.0101)
OKLCHoklch(24.74% 0.087 6.7)
XYZxyz(2.3770, 1.3169, 1.1061)
Luminance0.0132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40071A #07402D
analogous
#400737 #40071A #401107
triadic
#40071A #1A4007 #071A40
tetradic
#40071A #374007 #07402D #110740
square
#40071A #374007 #07402D #110740
split-complementary
#40071A #074011 #073740
monochromatic
#1C030B #1C030B #40071A #770D30 #AE1347

Accessibility & contrast

On white

16.62
#40071A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40071A
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40071A#FFFFFF#000000##FFFFFF
##40071A1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16171A
Deuteranopia (green-blind)
#252219
Tritanopia (blue-blind)
#47000F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40071a;
/* rgb */ color: rgb(64, 7, 26);
/* oklch */ color: oklch(24.7% 0.086 6.7);
Tailwind
colors: {
  custom: {
    50: '#794d56',
    500: '#40071a',
    950: '#000000',
  },
}
SCSS
$custom: #40071a;
$custom-light: #794d56;
$custom-dark: #000000;
JSON
{
  "hex": "#40071a",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 26
  },
  "hsl": {
    "h": 340,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24735,
    "c": 0.0865,
    "h": 6.7
  },
  "luminance": 0.01317
}

Semantic roles & 50–950 ramp

primary
#40071A
secondary
#247F61
accent
#F7B531
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#0A0203
muted
#7C7878

Preview Lab

Preview with #40071A

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

Preview Lab → · Contrast checker → · Palette generator →

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