#400428#400428

#400428 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 25.0% C 0.097 H 349.9°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#400428
RGBrgb(64, 4, 40)
HSLhsl(324, 88%, 13%)
HSVhsv(324, 94%, 25%)
CMYKcmyk(0%, 93.8%, 37.5%, 74.9%)
CIE-LABlab(11.49, 31.03, -6.50)
CIE-LCHlch(11.49, 31.70, 348.17°)
OKLaboklab(24.98% 0.0952 -0.017)
OKLCHoklch(24.98% 0.097 349.9)
XYZxyz(2.5409, 1.3303, 2.1300)
Luminance0.0133 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400428 #04401C
analogous
#3A0440 #400428 #40040A
triadic
#400428 #284004 #042840
tetradic
#400428 #403A04 #04401C #040A40
square
#400428 #403A04 #04401C #040A40
split-complementary
#400428 #0A4004 #04403A
monochromatic
#1D0212 #1D0212 #400428 #7A084C #B30B70

Accessibility & contrast

On white

16.59
#400428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400428
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400428#FFFFFF#000000##FFFFFF
##4004281.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1829
Deuteranopia (green-blind)
#212227
Tritanopia (blue-blind)
#460115
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400428;
/* rgb */ color: rgb(64, 4, 40);
/* oklch */ color: oklch(25.0% 0.097 349.9);
Tailwind
colors: {
  custom: {
    50: '#784d61',
    500: '#400428',
    950: '#000000',
  },
}
SCSS
$custom: #400428;
$custom-light: #784d61;
$custom-dark: #000000;
JSON
{
  "hex": "#400428",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 324,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24981,
    "c": 0.09672,
    "h": 349.9
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#400428
secondary
#1F8146
accent
#FE7F29
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090105
muted
#7B7779

Preview Lab

Preview with #400428

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

Preview Lab → · Contrast checker → · Palette generator →

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