#40021B#40021B

#40021B is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.2% C 0.094 H 3.4°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#40021B
RGBrgb(64, 2, 27)
HSLhsl(336, 94%, 13%)
HSVhsv(336, 97%, 25%)
CMYKcmyk(0%, 96.9%, 57.8%, 74.9%)
CIE-LABlab(10.65, 30.45, 2.10)
CIE-LCHlch(10.65, 30.52, 3.94°)
OKLaboklab(24.2% 0.0935 0.0056)
OKLCHoklch(24.2% 0.094 3.4)
XYZxyz(2.3341, 1.2129, 1.1479)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40021B #024027
analogous
#40023A #40021B #400802
triadic
#40021B #1B4002 #021B40
tetradic
#40021B #3A4002 #024027 #080240
square
#40021B #3A4002 #024027 #080240
split-complementary
#40021B #024008 #023A40
monochromatic
#1E010D #1E010D #40021B #7B0434 #B7064D

Accessibility & contrast

On white

16.90
#40021B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#40021B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40021B
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40021B#FFFFFF#000000##FFFFFF
##40021B1.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12151C
Deuteranopia (green-blind)
#23211A
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40021b;
/* rgb */ color: rgb(64, 2, 27);
/* oklch */ color: oklch(24.2% 0.094 3.4);
Tailwind
colors: {
  custom: {
    50: '#794b56',
    500: '#40021b',
    950: '#000000',
  },
}
SCSS
$custom: #40021b;
$custom-light: #794b56;
$custom-dark: #000000;
JSON
{
  "hex": "#40021b",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 27
  },
  "hsl": {
    "h": 335.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24203,
    "c": 0.09368,
    "h": 3.4
  },
  "luminance": 0.01213
}

Semantic roles & 50–950 ramp

primary
#40021B
secondary
#1B8359
accent
#FFA929
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#0A0103
muted
#7C7778

Preview Lab

Preview with #40021B

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

Preview Lab → · Contrast checker → · Palette generator →

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