#400C2A#400C2A

#400C2A is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.9% C 0.087 H 349.4°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#400C2A
RGBrgb(64, 12, 42)
HSLhsl(325, 68%, 15%)
HSVhsv(325, 81%, 25%)
CMYKcmyk(0%, 81.2%, 34.4%, 74.9%)
CIE-LABlab(12.74, 28.01, -6.08)
CIE-LCHlch(12.74, 28.66, 347.75°)
OKLaboklab(25.92% 0.0854 -0.0159)
OKLCHoklch(25.92% 0.087 349.4)
XYZxyz(2.6639, 1.5204, 2.3432)
Luminance0.0152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C2A #0C4022
analogous
#3C0C40 #400C2A #400C10
triadic
#400C2A #2A400C #0C2A40
tetradic
#400C2A #403C0C #0C4022 #0C1040
square
#400C2A #403C0C #0C4022 #0C1040
split-complementary
#400C2A #10400C #0C403C
monochromatic
#1A0511 #1A0511 #400C2A #74164C #A71F6E

Accessibility & contrast

On white

16.10
#400C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C2A
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C2A#FFFFFF#000000##FFFFFF
##400C2A1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141B2B
Deuteranopia (green-blind)
#232429
Tritanopia (blue-blind)
#450919
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c2a;
/* rgb */ color: rgb(64, 12, 42);
/* oklch */ color: oklch(25.9% 0.087 349.4);
Tailwind
colors: {
  custom: {
    50: '#775063',
    500: '#400c2a',
    950: '#000000',
  },
}
SCSS
$custom: #400c2a;
$custom-light: #775063;
$custom-dark: #000000;
JSON
{
  "hex": "#400c2a",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 325.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25921,
    "c": 0.08689,
    "h": 349.4
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#400C2A
secondary
#2C7C4E
accent
#EB863D
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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