#40112C#40112C

#40112C is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.6% C 0.080 H 348.4°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#40112C
RGBrgb(64, 17, 44)
HSLhsl(326, 58%, 16%)
HSVhsv(326, 73%, 25%)
CMYKcmyk(0%, 73.4%, 31.2%, 74.9%)
CIE-LABlab(13.67, 25.98, -6.14)
CIE-LCHlch(13.67, 26.70, 346.70°)
OKLaboklab(26.63% 0.0788 -0.0161)
OKLCHoklch(26.63% 0.08 348.4)
XYZxyz(2.7695, 1.6730, 2.5595)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112C #114025
analogous
#3C1140 #40112C #401114
triadic
#40112C #2C4011 #112C40
tetradic
#40112C #403C11 #114025 #111440
square
#40112C #403C11 #114025 #111440
split-complementary
#40112C #144011 #11403C
monochromatic
#180611 #180611 #40112C #701E4D #A12B6E

Accessibility & contrast

On white

15.74
#40112C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40112C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40112C
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112C#FFFFFF#000000##FFFFFF
##40112C1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2D
Deuteranopia (green-blind)
#24262B
Tritanopia (blue-blind)
#450F1C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112c;
/* rgb */ color: rgb(64, 17, 44);
/* oklch */ color: oklch(26.6% 0.080 348.4);
Tailwind
colors: {
  custom: {
    50: '#775365',
    500: '#40112c',
    950: '#000000',
  },
}
SCSS
$custom: #40112c;
$custom-light: #775365;
$custom-dark: #000000;
JSON
{
  "hex": "#40112c",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 44
  },
  "hsl": {
    "h": 325.532,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26634,
    "c": 0.08042,
    "h": 348.4
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#40112C
secondary
#337951
accent
#E18847
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #40112C

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

Preview Lab → · Contrast checker → · Palette generator →

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