#400F1E#400F1E

#400F1E is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.8% C 0.077 H 5.7°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#400F1E
RGBrgb(64, 15, 30)
HSLhsl(342, 62%, 15%)
HSVhsv(342, 77%, 25%)
CMYKcmyk(0%, 76.6%, 53.1%, 74.9%)
CIE-LABlab(12.77, 25.08, 2.86)
CIE-LCHlch(12.77, 25.24, 6.52°)
OKLaboklab(25.8% 0.0765 0.0076)
OKLCHoklch(25.8% 0.077 5.7)
XYZxyz(2.5197, 1.5257, 1.3898)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F1E #0F4031
analogous
#400F36 #400F1E #40190F
triadic
#400F1E #1E400F #0F1E40
tetradic
#400F1E #36400F #0F4031 #190F40
square
#400F1E #36400F #0F4031 #190F40
split-complementary
#400F1E #0F4019 #0F3640
monochromatic
#19060C #19060C #400F1E #721B35 #A3264C

Accessibility & contrast

On white

16.09
#400F1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400F1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F1E
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F1E#FFFFFF#000000##FFFFFF
##400F1E1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1B1E
Deuteranopia (green-blind)
#27251D
Tritanopia (blue-blind)
#460815
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f1e;
/* rgb */ color: rgb(64, 15, 30);
/* oklch */ color: oklch(25.8% 0.077 5.7);
Tailwind
colors: {
  custom: {
    50: '#785159',
    500: '#400f1e',
    950: '#000000',
  },
}
SCSS
$custom: #400f1e;
$custom-light: #785159;
$custom-dark: #000000;
JSON
{
  "hex": "#400f1e",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 30
  },
  "hsl": {
    "h": 341.633,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25795,
    "c": 0.07687,
    "h": 5.7
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#400F1E
secondary
#307A64
accent
#E5B343
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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