#40172D#40172D

#40172D is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.6% C 0.070 H 349.3°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#40172D
RGBrgb(64, 23, 45)
HSLhsl(328, 47%, 17%)
HSVhsv(328, 64%, 25%)
CMYKcmyk(0%, 64.1%, 29.7%, 74.9%)
CIE-LABlab(14.91, 22.90, -4.99)
CIE-LCHlch(14.91, 23.43, 347.71°)
OKLaboklab(27.57% 0.0692 -0.013)
OKLCHoklch(27.57% 0.07 349.3)
XYZxyz(2.8945, 1.8925, 2.6950)
Luminance0.0189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40172D #17402A
analogous
#3F1740 #40172D #401719
triadic
#40172D #2D4017 #172D40
tetradic
#40172D #403F17 #17402A #171940
square
#40172D #403F17 #17402A #171940
split-complementary
#40172D #194017 #17403F
monochromatic
#170810 #170810 #40172D #6D274D #9A376C

Accessibility & contrast

On white

15.24
#40172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40172D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40172D
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40172D#FFFFFF#000000##FFFFFF
##40172D1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C212E
Deuteranopia (green-blind)
#27282C
Tritanopia (blue-blind)
#451620
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40172d;
/* rgb */ color: rgb(64, 23, 45);
/* oklch */ color: oklch(27.6% 0.070 349.3);
Tailwind
colors: {
  custom: {
    50: '#775665',
    500: '#40172d',
    950: '#000000',
  },
}
SCSS
$custom: #40172d;
$custom-light: #775665;
$custom-dark: #000000;
JSON
{
  "hex": "#40172d",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 327.805,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2757,
    "c": 0.07037,
    "h": 349.3
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#40172D
secondary
#3C7757
accent
#D78F51
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090305
muted
#7B787A

Preview Lab

Preview with #40172D

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

Preview Lab → · Contrast checker → · Palette generator →

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