#400F1C#400F1C

#400F1C is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.076 H 8.3°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#400F1C
RGBrgb(64, 15, 28)
HSLhsl(344, 62%, 15%)
HSVhsv(344, 77%, 25%)
CMYKcmyk(0%, 76.6%, 56.2%, 74.9%)
CIE-LABlab(12.71, 24.86, 4.26)
CIE-LCHlch(12.71, 25.22, 9.73°)
OKLaboklab(25.73% 0.0756 0.011)
OKLCHoklch(25.73% 0.076 8.3)
XYZxyz(2.4950, 1.5158, 1.2596)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F1C #0F4033
analogous
#400F34 #400F1C #401B0F
triadic
#400F1C #1C400F #0F1C40
tetradic
#400F1C #34400F #0F4033 #1B0F40
square
#400F1C #34400F #0F4033 #1B0F40
split-complementary
#400F1C #0F401B #0F3440
monochromatic
#19060B #19060B #400F1C #721B32 #A32647

Accessibility & contrast

On white

16.12
#400F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F1C
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F1C#FFFFFF#000000##FFFFFF
##400F1C1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1B1C
Deuteranopia (green-blind)
#27251B
Tritanopia (blue-blind)
#460714
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f1c;
/* rgb */ color: rgb(64, 15, 28);
/* oklch */ color: oklch(25.7% 0.076 8.3);
Tailwind
colors: {
  custom: {
    50: '#785157',
    500: '#400f1c',
    950: '#000000',
  },
}
SCSS
$custom: #400f1c;
$custom-light: #785157;
$custom-dark: #000000;
JSON
{
  "hex": "#400f1c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 28
  },
  "hsl": {
    "h": 344.082,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25728,
    "c": 0.0764,
    "h": 8.3
  },
  "luminance": 0.01515
}

Semantic roles & 50–950 ramp

primary
#400F1C
secondary
#307A67
accent
#E5BA43
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400F1C

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

Preview Lab → · Contrast checker → · Palette generator →

#400F1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva