#40162E#40162E

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

Color values

HEX#40162E
RGBrgb(64, 22, 46)
HSLhsl(326, 49%, 17%)
HSVhsv(326, 66%, 25%)
CMYKcmyk(0%, 65.6%, 28.1%, 74.9%)
CIE-LABlab(14.74, 23.63, -5.97)
CIE-LCHlch(14.74, 24.37, 345.83°)
OKLaboklab(27.46% 0.0712 -0.0157)
OKLCHoklch(27.46% 0.073 347.6)
XYZxyz(2.8945, 1.8613, 2.7911)
Luminance0.0186 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40162E #164028
analogous
#3D1640 #40162E #401619
triadic
#40162E #2E4016 #162E40
tetradic
#40162E #403D16 #164028 #161940
square
#40162E #403D16 #164028 #161940
split-complementary
#40162E #194016 #16403D
monochromatic
#170810 #170810 #40162E #6E264F #9B356F

Accessibility & contrast

On white

15.30
#40162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40162E
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40162E#FFFFFF#000000##FFFFFF
##40162E1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40162e;
/* rgb */ color: rgb(64, 22, 46);
/* oklch */ color: oklch(27.5% 0.073 347.6);
Tailwind
colors: {
  custom: {
    50: '#775666',
    500: '#40162e',
    950: '#000000',
  },
}
SCSS
$custom: #40162e;
$custom-light: #775666;
$custom-dark: #000000;
JSON
{
  "hex": "#40162e",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 325.714,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27457,
    "c": 0.07294,
    "h": 347.6
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#40162E
secondary
#3B7755
accent
#D88A4F
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#090306
muted
#7B787A

Preview Lab

Preview with #40162E

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

Preview Lab → · Contrast checker → · Palette generator →

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