#400427#400427

#400427 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.9% C 0.096 H 350.9°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#400427
RGBrgb(64, 4, 39)
HSLhsl(325, 88%, 13%)
HSVhsv(325, 94%, 25%)
CMYKcmyk(0%, 93.8%, 39.1%, 74.9%)
CIE-LABlab(11.44, 30.90, -5.82)
CIE-LCHlch(11.44, 31.44, 349.33°)
OKLaboklab(24.93% 0.0949 -0.0151)
OKLCHoklch(24.93% 0.096 350.9)
XYZxyz(2.5241, 1.3236, 2.0416)
Luminance0.0132 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400427 #04401D
analogous
#3B0440 #400427 #400409
triadic
#400427 #274004 #042740
tetradic
#400427 #403B04 #04401D #040940
square
#400427 #403B04 #04401D #040940
split-complementary
#400427 #094004 #04403B
monochromatic
#1D0212 #1D0212 #400427 #7A084A #B30B6D

Accessibility & contrast

On white

16.61
#400427 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400427
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400427#FFFFFF#000000##FFFFFF
##4004271.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1728
Deuteranopia (green-blind)
#212226
Tritanopia (blue-blind)
#460015
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400427;
/* rgb */ color: rgb(64, 4, 39);
/* oklch */ color: oklch(24.9% 0.096 350.9);
Tailwind
colors: {
  custom: {
    50: '#784c61',
    500: '#400427',
    950: '#000000',
  },
}
SCSS
$custom: #400427;
$custom-light: #784c61;
$custom-dark: #000000;
JSON
{
  "hex": "#400427",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 39
  },
  "hsl": {
    "h": 325,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24932,
    "c": 0.09614,
    "h": 350.9
  },
  "luminance": 0.01323
}

Semantic roles & 50–950 ramp

primary
#400427
secondary
#1F8148
accent
#FE8229
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090105
muted
#7B7779

Preview Lab

Preview with #400427

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

Preview Lab → · Contrast checker → · Palette generator →

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