#40112E#40112E

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

Color values

HEX#40112E
RGBrgb(64, 17, 46)
HSLhsl(323, 58%, 16%)
HSVhsv(323, 73%, 25%)
CMYKcmyk(0%, 73.4%, 28.1%, 74.9%)
CIE-LABlab(13.76, 26.30, -7.46)
CIE-LCHlch(13.76, 27.34, 344.17°)
OKLaboklab(26.73% 0.0794 -0.0197)
OKLCHoklch(26.73% 0.082 346)
XYZxyz(2.8080, 1.6884, 2.7623)
Luminance0.0169 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112E #114023
analogous
#3A1140 #40112E #401116
triadic
#40112E #2E4011 #112E40
tetradic
#40112E #403A11 #114023 #111640
square
#40112E #403A11 #114023 #111640
split-complementary
#40112E #164011 #11403A
monochromatic
#180611 #180611 #40112E #701E51 #A12B74

Accessibility & contrast

On white

15.70
#40112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40112E
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112E#FFFFFF#000000##FFFFFF
##40112E1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161E2F
Deuteranopia (green-blind)
#24262D
Tritanopia (blue-blind)
#45101D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112e;
/* rgb */ color: rgb(64, 17, 46);
/* oklch */ color: oklch(26.7% 0.082 346.0);
Tailwind
colors: {
  custom: {
    50: '#775366',
    500: '#40112e',
    950: '#000000',
  },
}
SCSS
$custom: #40112e;
$custom-light: #775366;
$custom-dark: #000000;
JSON
{
  "hex": "#40112e",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 322.979,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26731,
    "c": 0.08182,
    "h": 346
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#40112E
secondary
#33794E
accent
#E18247
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #40112E

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

Preview Lab → · Contrast checker → · Palette generator →

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