#400421#400421

#400421 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.7% C 0.093 H 357.5°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#400421
RGBrgb(64, 4, 33)
HSLhsl(331, 88%, 13%)
HSVhsv(331, 94%, 25%)
CMYKcmyk(0%, 93.8%, 48.4%, 74.9%)
CIE-LABlab(11.18, 30.17, -1.69)
CIE-LCHlch(11.18, 30.22, 356.79°)
OKLaboklab(24.66% 0.093 -0.0041)
OKLCHoklch(24.66% 0.093 357.5)
XYZxyz(2.4325, 1.2870, 1.5589)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400421 #044023
analogous
#40043F #400421 #400504
triadic
#400421 #214004 #042140
tetradic
#400421 #3F4004 #044023 #050440
square
#400421 #3F4004 #044023 #050440
split-complementary
#400421 #044005 #043F40
monochromatic
#1D020F #1D020F #400421 #7A083F #B30B5C

Accessibility & contrast

On white

16.70
#400421 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400421 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400421
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400421#FFFFFF#000000##FFFFFF
##4004211.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121722
Deuteranopia (green-blind)
#232220
Tritanopia (blue-blind)
#460011
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400421;
/* rgb */ color: rgb(64, 4, 33);
/* oklch */ color: oklch(24.7% 0.093 357.5);
Tailwind
colors: {
  custom: {
    50: '#794c5c',
    500: '#400421',
    950: '#000000',
  },
}
SCSS
$custom: #400421;
$custom-light: #794c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#400421",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 33
  },
  "hsl": {
    "h": 331,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24662,
    "c": 0.09307,
    "h": 357.5
  },
  "luminance": 0.01287
}

Semantic roles & 50–950 ramp

primary
#400421
secondary
#1F8152
accent
#FE9729
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090104
muted
#7B7779

Preview Lab

Preview with #400421

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

Preview Lab → · Contrast checker → · Palette generator →

#400421 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva