#40112D#40112D

#40112D is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.7% C 0.081 H 347.2°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#40112D
RGBrgb(64, 17, 45)
HSLhsl(324, 58%, 16%)
HSVhsv(324, 73%, 25%)
CMYKcmyk(0%, 73.4%, 29.7%, 74.9%)
CIE-LABlab(13.71, 26.14, -6.80)
CIE-LCHlch(13.71, 27.01, 345.42°)
OKLaboklab(26.68% 0.0791 -0.0179)
OKLCHoklch(26.68% 0.081 347.2)
XYZxyz(2.7886, 1.6806, 2.6596)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112D #114024
analogous
#3B1140 #40112D #401115
triadic
#40112D #2D4011 #112D40
tetradic
#40112D #403B11 #114024 #111540
square
#40112D #403B11 #114024 #111540
split-complementary
#40112D #154011 #11403B
monochromatic
#180611 #180611 #40112D #701E4F #A12B71

Accessibility & contrast

On white

15.72
#40112D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40112D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40112D
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112D#FFFFFF#000000##FFFFFF
##40112D1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2E
Deuteranopia (green-blind)
#24262C
Tritanopia (blue-blind)
#45101D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112d;
/* rgb */ color: rgb(64, 17, 45);
/* oklch */ color: oklch(26.7% 0.081 347.2);
Tailwind
colors: {
  custom: {
    50: '#775365',
    500: '#40112d',
    950: '#000000',
  },
}
SCSS
$custom: #40112d;
$custom-light: #775365;
$custom-dark: #000000;
JSON
{
  "hex": "#40112d",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 45
  },
  "hsl": {
    "h": 324.255,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26682,
    "c": 0.0811,
    "h": 347.2
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#40112D
secondary
#337950
accent
#E18547
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40112D

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

Preview Lab → · Contrast checker → · Palette generator →

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