#400F2A#400F2A

#400F2A is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.3% C 0.082 H 350.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#400F2A
RGBrgb(64, 15, 42)
HSLhsl(327, 62%, 15%)
HSVhsv(327, 77%, 25%)
CMYKcmyk(0%, 76.6%, 34.4%, 74.9%)
CIE-LABlab(13.22, 26.65, -5.35)
CIE-LCHlch(13.22, 27.18, 348.66°)
OKLaboklab(26.28% 0.0812 -0.0139)
OKLCHoklch(26.28% 0.082 350.3)
XYZxyz(2.7032, 1.5991, 2.3563)
Luminance0.0160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2A #0F4025
analogous
#3D0F40 #400F2A #400F11
triadic
#400F2A #2A400F #0F2A40
tetradic
#400F2A #403D0F #0F4025 #0F1140
square
#400F2A #403D0F #0F4025 #0F1140
split-complementary
#400F2A #11400F #0F403D
monochromatic
#190610 #190610 #400F2A #721B4B #A3266B

Accessibility & contrast

On white

15.91
#400F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#400F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F2A
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2A#FFFFFF#000000##FFFFFF
##400F2A1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161C2B
Deuteranopia (green-blind)
#242529
Tritanopia (blue-blind)
#450C1A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2a;
/* rgb */ color: rgb(64, 15, 42);
/* oklch */ color: oklch(26.3% 0.082 350.3);
Tailwind
colors: {
  custom: {
    50: '#775263',
    500: '#400f2a',
    950: '#000000',
  },
}
SCSS
$custom: #400f2a;
$custom-light: #775263;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2a",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 326.939,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26279,
    "c": 0.08237,
    "h": 350.3
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#400F2A
secondary
#307A52
accent
#E58C43
background
#F7F4F5
surface
#EDE7EA
border
#C8C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #400F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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