#40162A#40162A

#40162A is a dark, moderate pink. Relative luminance 0.018; OKLCH L 27.3% C 0.070 H 353.1°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#40162A
RGBrgb(64, 22, 42)
HSLhsl(331, 49%, 17%)
HSVhsv(331, 66%, 25%)
CMYKcmyk(0%, 65.6%, 34.4%, 74.9%)
CIE-LABlab(14.58, 22.98, -3.32)
CIE-LCHlch(14.58, 23.22, 351.78°)
OKLaboklab(27.28% 0.0698 -0.0085)
OKLCHoklch(27.28% 0.07 353.1)
XYZxyz(2.8193, 1.8313, 2.3950)
Luminance0.0183 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40162A #16402C
analogous
#40163F #40162A #401716
triadic
#40162A #2A4016 #162A40
tetradic
#40162A #3F4016 #16402C #171640
square
#40162A #3F4016 #16402C #171640
split-complementary
#40162A #164017 #163F40
monochromatic
#17080F #17080F #40162A #6E2648 #9B3566

Accessibility & contrast

On white

15.37
#40162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40162A
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40162A#FFFFFF#000000##FFFFFF
##40162A1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C202B
Deuteranopia (green-blind)
#272829
Tritanopia (blue-blind)
#45141E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40162a;
/* rgb */ color: rgb(64, 22, 42);
/* oklch */ color: oklch(27.3% 0.070 353.1);
Tailwind
colors: {
  custom: {
    50: '#775563',
    500: '#40162a',
    950: '#000000',
  },
}
SCSS
$custom: #40162a;
$custom-light: #775563;
$custom-dark: #000000;
JSON
{
  "hex": "#40162a",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 331.429,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27278,
    "c": 0.07033,
    "h": 353.1
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#40162A
secondary
#3B775A
accent
#D8974F
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #40162A

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

Preview Lab → · Contrast checker → · Palette generator →

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