#400418#400418

#400418 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.3% C 0.090 H 7.7°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#400418
RGBrgb(64, 4, 24)
HSLhsl(340, 88%, 13%)
HSVhsv(340, 94%, 25%)
CMYKcmyk(0%, 93.8%, 62.5%, 74.9%)
CIE-LABlab(10.87, 29.27, 4.71)
CIE-LCHlch(10.87, 29.65, 9.13°)
OKLaboklab(24.33% 0.0892 0.012)
OKLCHoklch(24.33% 0.09 7.7)
XYZxyz(2.3229, 1.2431, 0.9816)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400418 #04402C
analogous
#400436 #400418 #400E04
triadic
#400418 #184004 #041840
tetradic
#400418 #364004 #04402C #0E0440
square
#400418 #364004 #04402C #0E0440
split-complementary
#400418 #04400E #043640
monochromatic
#1D020B #1D020B #400418 #7A082E #B30B43

Accessibility & contrast

On white

16.82
#400418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#400418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400418
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400418#FFFFFF#000000##FFFFFF
##4004181.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141518
Deuteranopia (green-blind)
#242217
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400418;
/* rgb */ color: rgb(64, 4, 24);
/* oklch */ color: oklch(24.3% 0.090 7.7);
Tailwind
colors: {
  custom: {
    50: '#794c54',
    500: '#400418',
    950: '#000000',
  },
}
SCSS
$custom: #400418;
$custom-light: #794c54;
$custom-dark: #000000;
JSON
{
  "hex": "#400418",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 24
  },
  "hsl": {
    "h": 340,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24332,
    "c": 0.09004,
    "h": 7.7
  },
  "luminance": 0.01243
}

Semantic roles & 50–950 ramp

primary
#400418
secondary
#1F8160
accent
#FEB729
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400418

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

Preview Lab → · Contrast checker → · Palette generator →

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