#400C1F#400C1F

#400C1F is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.5% C 0.081 H 2.8°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#400C1F
RGBrgb(64, 12, 31)
HSLhsl(338, 68%, 15%)
HSVhsv(338, 81%, 25%)
CMYKcmyk(0%, 81.2%, 51.6%, 74.9%)
CIE-LABlab(12.30, 26.58, 1.44)
CIE-LCHlch(12.30, 26.62, 3.11°)
OKLaboklab(25.46% 0.0814 0.004)
OKLCHoklch(25.46% 0.081 2.8)
XYZxyz(2.4933, 1.4522, 1.4451)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C1F #0C402D
analogous
#400C39 #400C1F #40130C
triadic
#400C1F #1F400C #0C1F40
tetradic
#400C1F #39400C #0C402D #130C40
square
#400C1F #39400C #0C402D #130C40
split-complementary
#400C1F #0C4013 #0C3940
monochromatic
#1A050C #1A050C #400C1F #741638 #A71F51

Accessibility & contrast

On white

16.27
#400C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C1F
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C1F#FFFFFF#000000##FFFFFF
##400C1F1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181A1F
Deuteranopia (green-blind)
#25241E
Tritanopia (blue-blind)
#460514
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c1f;
/* rgb */ color: rgb(64, 12, 31);
/* oklch */ color: oklch(25.5% 0.081 2.8);
Tailwind
colors: {
  custom: {
    50: '#78505a',
    500: '#400c1f',
    950: '#000000',
  },
}
SCSS
$custom: #400c1f;
$custom-light: #78505a;
$custom-dark: #000000;
JSON
{
  "hex": "#400c1f",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 31
  },
  "hsl": {
    "h": 338.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25458,
    "c": 0.08147,
    "h": 2.8
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#400C1F
secondary
#2C7C5F
accent
#EBAB3D
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #400C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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