#40162B#40162B

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

Color values

HEX#40162B
RGBrgb(64, 22, 43)
HSLhsl(330, 49%, 17%)
HSVhsv(330, 66%, 25%)
CMYKcmyk(0%, 65.6%, 32.8%, 74.9%)
CIE-LABlab(14.62, 23.14, -3.99)
CIE-LCHlch(14.62, 23.48, 350.23°)
OKLaboklab(27.32% 0.0702 -0.0103)
OKLCHoklch(27.32% 0.071 351.7)
XYZxyz(2.8374, 1.8385, 2.4905)
Luminance0.0184 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40162B #16402B
analogous
#401640 #40162B #401616
triadic
#40162B #2B4016 #162B40
tetradic
#40162B #404016 #16402B #161640
square
#40162B #404016 #16402B #161640
split-complementary
#40162B #164016 #164040
monochromatic
#17080F #17080F #40162B #6E264A #9B3568

Accessibility & contrast

On white

15.36
#40162B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40162B
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40162B#FFFFFF#000000##FFFFFF
##40162B1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C202C
Deuteranopia (green-blind)
#27282A
Tritanopia (blue-blind)
#45141E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40162b;
/* rgb */ color: rgb(64, 22, 43);
/* oklch */ color: oklch(27.3% 0.071 351.7);
Tailwind
colors: {
  custom: {
    50: '#775564',
    500: '#40162b',
    950: '#000000',
  },
}
SCSS
$custom: #40162b;
$custom-light: #775564;
$custom-dark: #000000;
JSON
{
  "hex": "#40162b",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 43
  },
  "hsl": {
    "h": 330,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27322,
    "c": 0.07093,
    "h": 351.7
  },
  "luminance": 0.01838
}

Semantic roles & 50–950 ramp

primary
#40162B
secondary
#3B7759
accent
#D8944F
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#090305
muted
#7B7879

Preview Lab

Preview with #40162B

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

Preview Lab → · Contrast checker → · Palette generator →

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