#40112A#40112A

#40112A is a dark, moderate pink. Relative luminance 0.017; OKLCH L 26.5% C 0.079 H 350.9°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#40112A
RGBrgb(64, 17, 42)
HSLhsl(328, 58%, 16%)
HSVhsv(328, 73%, 25%)
CMYKcmyk(0%, 73.4%, 34.4%, 74.9%)
CIE-LABlab(13.58, 25.67, -4.81)
CIE-LCHlch(13.58, 26.12, 349.39°)
OKLaboklab(26.54% 0.0781 -0.0125)
OKLCHoklch(26.54% 0.079 350.9)
XYZxyz(2.7329, 1.6583, 2.3662)
Luminance0.0166 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40112A #114027
analogous
#3E1140 #40112A #401112
triadic
#40112A #2A4011 #112A40
tetradic
#40112A #403E11 #114027 #111240
square
#40112A #403E11 #114027 #111240
split-complementary
#40112A #124011 #11403E
monochromatic
#180610 #180610 #40112A #701E4A #A12B69

Accessibility & contrast

On white

15.77
#40112A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40112A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40112A#FFFFFF#000000##FFFFFF
##40112A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181D2B
Deuteranopia (green-blind)
#252629
Tritanopia (blue-blind)
#450F1B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40112a;
/* rgb */ color: rgb(64, 17, 42);
/* oklch */ color: oklch(26.5% 0.079 350.9);
Tailwind
colors: {
  custom: {
    50: '#775363',
    500: '#40112a',
    950: '#000000',
  },
}
SCSS
$custom: #40112a;
$custom-light: #775363;
$custom-dark: #000000;
JSON
{
  "hex": "#40112a",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 42
  },
  "hsl": {
    "h": 328.085,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26542,
    "c": 0.07912,
    "h": 350.9
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#40112A
secondary
#337954
accent
#E18F47
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40112A

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

Preview Lab → · Contrast checker → · Palette generator →

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