#40112F#40112F

#40112F is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.8% C 0.083 H 344.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#40112F
RGBrgb(64, 17, 47)
HSLhsl(322, 58%, 16%)
HSVhsv(322, 73%, 25%)
CMYKcmyk(0%, 73.4%, 26.6%, 74.9%)
CIE-LABlab(13.81, 26.46, -8.11)
CIE-LCHlch(13.81, 27.68, 342.95°)
OKLaboklab(26.78% 0.0797 -0.0215)
OKLCHoklch(26.78% 0.083 344.9)
XYZxyz(2.8280, 1.6964, 2.8673)
Luminance0.0170 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112F #114022
analogous
#391140 #40112F #401117
triadic
#40112F #2F4011 #112F40
tetradic
#40112F #403911 #114022 #111740
square
#40112F #403911 #114022 #111740
split-complementary
#40112F #174011 #114039
monochromatic
#180612 #180612 #40112F #701E53 #A12B76

Accessibility & contrast

On white

15.68
#40112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40112F
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112F#FFFFFF#000000##FFFFFF
##40112F1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161E30
Deuteranopia (green-blind)
#23262E
Tritanopia (blue-blind)
#45111E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112f;
/* rgb */ color: rgb(64, 17, 47);
/* oklch */ color: oklch(26.8% 0.083 344.9);
Tailwind
colors: {
  custom: {
    50: '#775367',
    500: '#40112f',
    950: '#000000',
  },
}
SCSS
$custom: #40112f;
$custom-light: #775367;
$custom-dark: #000000;
JSON
{
  "hex": "#40112f",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 321.702,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26781,
    "c": 0.08254,
    "h": 344.9
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#40112F
secondary
#33794D
accent
#E17F47
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40112F

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

Preview Lab → · Contrast checker → · Palette generator →

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