#40071C#40071C

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

Color values

HEX#40071C
RGBrgb(64, 7, 28)
HSLhsl(338, 80%, 14%)
HSVhsv(338, 89%, 25%)
CMYKcmyk(0%, 89.1%, 56.2%, 74.9%)
CIE-LABlab(11.46, 28.34, 2.49)
CIE-LCHlch(11.46, 28.45, 5.02°)
OKLaboklab(24.8% 0.0868 0.0066)
OKLCHoklch(24.8% 0.087 4.4)
XYZxyz(2.4001, 1.3261, 1.2280)
Luminance0.0133 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40071C #07402B
analogous
#400739 #40071C #400F07
triadic
#40071C #1C4007 #071C40
tetradic
#40071C #394007 #07402B #0F0740
square
#40071C #394007 #07402B #0F0740
split-complementary
#40071C #07400F #073940
monochromatic
#1C030C #1C030C #40071C #770D34 #AE134C

Accessibility & contrast

On white

16.60
#40071C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40071C
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40071C#FFFFFF#000000##FFFFFF
##40071C1.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40071c;
/* rgb */ color: rgb(64, 7, 28);
/* oklch */ color: oklch(24.8% 0.087 4.4);
Tailwind
colors: {
  custom: {
    50: '#794d57',
    500: '#40071c',
    950: '#000000',
  },
}
SCSS
$custom: #40071c;
$custom-light: #794d57;
$custom-dark: #000000;
JSON
{
  "hex": "#40071c",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 28
  },
  "hsl": {
    "h": 337.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24803,
    "c": 0.08703,
    "h": 4.4
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#40071C
secondary
#247F5D
accent
#F7AE31
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40071C

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

Preview Lab → · Contrast checker → · Palette generator →

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