#400F2F#400F2F

#400F2F is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.5% C 0.086 H 344.4°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#400F2F
RGBrgb(64, 15, 47)
HSLhsl(321, 62%, 15%)
HSVhsv(321, 77%, 25%)
CMYKcmyk(0%, 76.6%, 26.6%, 74.9%)
CIE-LABlab(13.46, 27.43, -8.65)
CIE-LCHlch(13.46, 28.76, 342.50°)
OKLaboklab(26.52% 0.0827 -0.023)
OKLCHoklch(26.52% 0.086 344.4)
XYZxyz(2.7984, 1.6372, 2.8574)
Luminance0.0164 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2F #0F4020
analogous
#380F40 #400F2F #400F17
triadic
#400F2F #2F400F #0F2F40
tetradic
#400F2F #40380F #0F4020 #0F1740
square
#400F2F #40380F #0F4020 #0F1740
split-complementary
#400F2F #17400F #0F4038
monochromatic
#190612 #190612 #400F2F #721B53 #A32678

Accessibility & contrast

On white

15.82
#400F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#400F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F2F
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2F#FFFFFF#000000##FFFFFF
##400F2F1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D30
Deuteranopia (green-blind)
#23252E
Tritanopia (blue-blind)
#450F1D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2f;
/* rgb */ color: rgb(64, 15, 47);
/* oklch */ color: oklch(26.5% 0.086 344.4);
Tailwind
colors: {
  custom: {
    50: '#775267',
    500: '#400f2f',
    950: '#000000',
  },
}
SCSS
$custom: #400f2f;
$custom-light: #775267;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2f",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 320.816,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26523,
    "c": 0.0858,
    "h": 344.4
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#400F2F
secondary
#307A4A
accent
#E57B43
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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