#40071E#40071E

#40071E is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.9% C 0.088 H 2.0°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#40071E
RGBrgb(64, 7, 30)
HSLhsl(336, 80%, 14%)
HSVhsv(336, 89%, 25%)
CMYKcmyk(0%, 89.1%, 53.1%, 74.9%)
CIE-LABlab(11.53, 28.55, 1.07)
CIE-LCHlch(11.53, 28.57, 2.15°)
OKLaboklab(24.88% 0.0876 0.0031)
OKLCHoklch(24.88% 0.088 2)
XYZxyz(2.4249, 1.3360, 1.3582)
Luminance0.0134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40071E #074029
analogous
#40073B #40071E #400C07
triadic
#40071E #1E4007 #071E40
tetradic
#40071E #3B4007 #074029 #0C0740
square
#40071E #3B4007 #074029 #0C0740
split-complementary
#40071E #07400C #073B40
monochromatic
#1C030D #1C030D #40071E #770D38 #AE1352

Accessibility & contrast

On white

16.57
#40071E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40071E
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40071E#FFFFFF#000000##FFFFFF
##40071E1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15171F
Deuteranopia (green-blind)
#24231D
Tritanopia (blue-blind)
#460011
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40071e;
/* rgb */ color: rgb(64, 7, 30);
/* oklch */ color: oklch(24.9% 0.088 2.0);
Tailwind
colors: {
  custom: {
    50: '#794d59',
    500: '#40071e',
    950: '#000000',
  },
}
SCSS
$custom: #40071e;
$custom-light: #794d59;
$custom-dark: #000000;
JSON
{
  "hex": "#40071e",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 30
  },
  "hsl": {
    "h": 335.789,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24875,
    "c": 0.08768,
    "h": 2
  },
  "luminance": 0.01336
}

Semantic roles & 50–950 ramp

primary
#40071E
secondary
#247F5A
accent
#F7A731
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40071E

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

Preview Lab → · Contrast checker → · Palette generator →

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