#40172A#40172A

#40172A is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.4% C 0.068 H 353.6°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#40172A
RGBrgb(64, 23, 42)
HSLhsl(332, 47%, 17%)
HSVhsv(332, 64%, 25%)
CMYKcmyk(0%, 64.1%, 34.4%, 74.9%)
CIE-LABlab(14.79, 22.41, -3.00)
CIE-LCHlch(14.79, 22.61, 352.37°)
OKLaboklab(27.44% 0.0681 -0.0076)
OKLCHoklch(27.44% 0.068 353.6)
XYZxyz(2.8388, 1.8702, 2.4015)
Luminance0.0187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40172A #17402D
analogous
#40173F #40172A #401917
triadic
#40172A #2A4017 #172A40
tetradic
#40172A #3F4017 #17402D #191740
square
#40172A #3F4017 #17402D #191740
split-complementary
#40172A #174019 #173F40
monochromatic
#17080F #17080F #40172A #6D2748 #9A3765

Accessibility & contrast

On white

15.28
#40172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40172A
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40172A#FFFFFF#000000##FFFFFF
##40172A1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D212B
Deuteranopia (green-blind)
#282829
Tritanopia (blue-blind)
#45151E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40172a;
/* rgb */ color: rgb(64, 23, 42);
/* oklch */ color: oklch(27.4% 0.068 353.6);
Tailwind
colors: {
  custom: {
    50: '#775663',
    500: '#40172a',
    950: '#000000',
  },
}
SCSS
$custom: #40172a;
$custom-light: #775663;
$custom-dark: #000000;
JSON
{
  "hex": "#40172a",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 332.195,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27439,
    "c": 0.06848,
    "h": 353.6
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#40172A
secondary
#3C775C
accent
#D79951
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #40172A

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

Preview Lab → · Contrast checker → · Palette generator →

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