#400F2D#400F2D

#400F2D is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.4% C 0.084 H 346.7°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#400F2D
RGBrgb(64, 15, 45)
HSLhsl(323, 62%, 15%)
HSVhsv(323, 77%, 25%)
CMYKcmyk(0%, 76.6%, 29.7%, 74.9%)
CIE-LABlab(13.36, 27.11, -7.34)
CIE-LCHlch(13.36, 28.09, 344.86°)
OKLaboklab(26.42% 0.0821 -0.0194)
OKLCHoklch(26.42% 0.084 346.7)
XYZxyz(2.7589, 1.6214, 2.6498)
Luminance0.0162 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2D #0F4022
analogous
#3A0F40 #400F2D #400F15
triadic
#400F2D #2D400F #0F2D40
tetradic
#400F2D #403A0F #0F4022 #0F1540
square
#400F2D #403A0F #0F4022 #0F1540
split-complementary
#400F2D #15400F #0F403A
monochromatic
#190611 #190611 #400F2D #721B50 #A32673

Accessibility & contrast

On white

15.86
#400F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F2D
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2D#FFFFFF#000000##FFFFFF
##400F2D1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151D2E
Deuteranopia (green-blind)
#23252C
Tritanopia (blue-blind)
#450E1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2d;
/* rgb */ color: rgb(64, 15, 45);
/* oklch */ color: oklch(26.4% 0.084 346.7);
Tailwind
colors: {
  custom: {
    50: '#775265',
    500: '#400f2d',
    950: '#000000',
  },
}
SCSS
$custom: #400f2d;
$custom-light: #775265;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2d",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 323.265,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26422,
    "c": 0.08436,
    "h": 346.7
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#400F2D
secondary
#307A4D
accent
#E58243
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090205
muted
#7B787A

Preview Lab

Preview with #400F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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