#40112B#40112B

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

Color values

HEX#40112B
RGBrgb(64, 17, 43)
HSLhsl(327, 58%, 16%)
HSVhsv(327, 73%, 25%)
CMYKcmyk(0%, 73.4%, 32.8%, 74.9%)
CIE-LABlab(13.62, 25.83, -5.48)
CIE-LCHlch(13.62, 26.40, 348.03°)
OKLaboklab(26.59% 0.0785 -0.0143)
OKLCHoklch(26.59% 0.08 349.7)
XYZxyz(2.7510, 1.6656, 2.4616)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112B #114026
analogous
#3D1140 #40112B #401113
triadic
#40112B #2B4011 #112B40
tetradic
#40112B #403D11 #114026 #111340
square
#40112B #403D11 #114026 #111340
split-complementary
#40112B #134011 #11403D
monochromatic
#180610 #180610 #40112B #701E4B #A12B6C

Accessibility & contrast

On white

15.75
#40112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40112B
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112B#FFFFFF#000000##FFFFFF
##40112B1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171E2C
Deuteranopia (green-blind)
#25262A
Tritanopia (blue-blind)
#450F1C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112b;
/* rgb */ color: rgb(64, 17, 43);
/* oklch */ color: oklch(26.6% 0.080 349.7);
Tailwind
colors: {
  custom: {
    50: '#775364',
    500: '#40112b',
    950: '#000000',
  },
}
SCSS
$custom: #40112b;
$custom-light: #775364;
$custom-dark: #000000;
JSON
{
  "hex": "#40112b",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 326.809,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26587,
    "c": 0.07976,
    "h": 349.7
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#40112B
secondary
#337953
accent
#E18C47
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40112B

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

Preview Lab → · Contrast checker → · Palette generator →

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