#400417#400417

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

Color values

HEX#400417
RGBrgb(64, 4, 23)
HSLhsl(341, 88%, 13%)
HSVhsv(341, 94%, 25%)
CMYKcmyk(0%, 93.8%, 64.1%, 74.9%)
CIE-LABlab(10.84, 29.19, 5.42)
CIE-LCHlch(10.84, 29.69, 10.52°)
OKLaboklab(24.3% 0.0888 0.0137)
OKLCHoklch(24.3% 0.09 8.8)
XYZxyz(2.3127, 1.2390, 0.9278)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400417 #04402D
analogous
#400435 #400417 #400F04
triadic
#400417 #174004 #041740
tetradic
#400417 #354004 #04402D #0F0440
square
#400417 #354004 #04402D #0F0440
split-complementary
#400417 #04400F #043540
monochromatic
#1D020A #1D020A #400417 #7A082C #B30B40

Accessibility & contrast

On white

16.83
#400417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400417
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400417#FFFFFF#000000##FFFFFF
##4004171.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151517
Deuteranopia (green-blind)
#242115
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400417;
/* rgb */ color: rgb(64, 4, 23);
/* oklch */ color: oklch(24.3% 0.090 8.8);
Tailwind
colors: {
  custom: {
    50: '#794c53',
    500: '#400417',
    950: '#000000',
  },
}
SCSS
$custom: #400417;
$custom-light: #794c53;
$custom-dark: #000000;
JSON
{
  "hex": "#400417",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 23
  },
  "hsl": {
    "h": 341,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24301,
    "c": 0.08983,
    "h": 8.8
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#400417
secondary
#1F8162
accent
#FEBB29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400417

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

Preview Lab → · Contrast checker → · Palette generator →

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