#40162F#40162F

#40162F is a dark, moderate pink. Relative luminance 0.019; OKLCH L 27.5% C 0.074 H 346.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#40162F
RGBrgb(64, 22, 47)
HSLhsl(324, 49%, 17%)
HSVhsv(324, 66%, 25%)
CMYKcmyk(0%, 65.6%, 26.6%, 74.9%)
CIE-LABlab(14.79, 23.80, -6.62)
CIE-LCHlch(14.79, 24.70, 344.45°)
OKLaboklab(27.5% 0.0716 -0.0175)
OKLCHoklch(27.5% 0.074 346.3)
XYZxyz(2.9144, 1.8693, 2.8961)
Luminance0.0187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40162F #164027
analogous
#3C1640 #40162F #40161A
triadic
#40162F #2F4016 #162F40
tetradic
#40162F #403C16 #164027 #161A40
square
#40162F #403C16 #164027 #161A40
split-complementary
#40162F #1A4016 #16403C
monochromatic
#170811 #170811 #40162F #6E2650 #9B3572

Accessibility & contrast

On white

15.29
#40162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40162F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40162F
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40162F#FFFFFF#000000##FFFFFF
##40162F1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2130
Deuteranopia (green-blind)
#26282E
Tritanopia (blue-blind)
#451520
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40162f;
/* rgb */ color: rgb(64, 22, 47);
/* oklch */ color: oklch(27.5% 0.074 346.3);
Tailwind
colors: {
  custom: {
    50: '#775667',
    500: '#40162f',
    950: '#000000',
  },
}
SCSS
$custom: #40162f;
$custom-light: #775667;
$custom-dark: #000000;
JSON
{
  "hex": "#40162f",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 324.286,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27504,
    "c": 0.07366,
    "h": 346.3
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#40162F
secondary
#3B7753
accent
#D8874F
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40162F

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

Preview Lab → · Contrast checker → · Palette generator →

#40162F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva