#400F2E#400F2E

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

Color values

HEX#400F2E
RGBrgb(64, 15, 46)
HSLhsl(322, 62%, 15%)
HSVhsv(322, 77%, 25%)
CMYKcmyk(0%, 76.6%, 28.1%, 74.9%)
CIE-LABlab(13.41, 27.27, -8.00)
CIE-LCHlch(13.41, 28.42, 343.66°)
OKLaboklab(26.47% 0.0824 -0.0212)
OKLCHoklch(26.47% 0.085 345.6)
XYZxyz(2.7784, 1.6292, 2.7524)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F2E #0F4021
analogous
#390F40 #400F2E #400F15
triadic
#400F2E #2E400F #0F2E40
tetradic
#400F2E #40390F #0F4021 #0F1540
square
#400F2E #40390F #0F4021 #0F1540
split-complementary
#400F2E #15400F #0F4039
monochromatic
#190612 #190612 #400F2E #721B52 #A32675

Accessibility & contrast

On white

15.84
#400F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F2E
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F2E#FFFFFF#000000##FFFFFF
##400F2E1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141D2F
Deuteranopia (green-blind)
#23252D
Tritanopia (blue-blind)
#450E1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400f2e;
/* rgb */ color: rgb(64, 15, 46);
/* oklch */ color: oklch(26.5% 0.085 345.6);
Tailwind
colors: {
  custom: {
    50: '#775266',
    500: '#400f2e',
    950: '#000000',
  },
}
SCSS
$custom: #400f2e;
$custom-light: #775266;
$custom-dark: #000000;
JSON
{
  "hex": "#400f2e",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 322.041,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26472,
    "c": 0.08506,
    "h": 345.6
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#400F2E
secondary
#307A4C
accent
#E57E43
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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