#400E1F#400E1F

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

Color values

HEX#400E1F
RGBrgb(64, 14, 31)
HSLhsl(340, 64%, 15%)
HSVhsv(340, 78%, 25%)
CMYKcmyk(0%, 78.1%, 51.6%, 74.9%)
CIE-LABlab(12.63, 25.67, 1.92)
CIE-LCHlch(12.63, 25.74, 4.27°)
OKLaboklab(25.7% 0.0785 0.0052)
OKLCHoklch(25.7% 0.079 3.8)
XYZxyz(2.5189, 1.5033, 1.4536)
Luminance0.0150 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E1F #0E402F
analogous
#400E38 #400E1F #40160E
triadic
#400E1F #1F400E #0E1F40
tetradic
#400E1F #38400E #0E402F #160E40
square
#400E1F #38400E #0E402F #160E40
split-complementary
#400E1F #0E4016 #0E3840
monochromatic
#19050C #19050C #400E1F #721937 #A42450

Accessibility & contrast

On white

16.15
#400E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E1F
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E1F#FFFFFF#000000##FFFFFF
##400E1F1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191B1F
Deuteranopia (green-blind)
#26241E
Tritanopia (blue-blind)
#460715
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400e1f;
/* rgb */ color: rgb(64, 14, 31);
/* oklch */ color: oklch(25.7% 0.079 3.8);
Tailwind
colors: {
  custom: {
    50: '#78515a',
    500: '#400e1f',
    950: '#000000',
  },
}
SCSS
$custom: #400e1f;
$custom-light: #78515a;
$custom-dark: #000000;
JSON
{
  "hex": "#400e1f",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 31
  },
  "hsl": {
    "h": 339.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.257,
    "c": 0.07864,
    "h": 3.8
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#400E1F
secondary
#2F7B61
accent
#E7AF41
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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