#400E2F#400E2F

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

Color values

HEX#400E2F
RGBrgb(64, 14, 47)
HSLhsl(320, 64%, 15%)
HSVhsv(320, 78%, 25%)
CMYKcmyk(0%, 78.1%, 26.6%, 74.9%)
CIE-LABlab(13.29, 27.89, -8.90)
CIE-LCHlch(13.29, 29.28, 342.30°)
OKLaboklab(26.4% 0.0841 -0.0237)
OKLCHoklch(26.4% 0.087 344.2)
XYZxyz(2.7846, 1.6096, 2.8528)
Luminance0.0161 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E2F #0E401F
analogous
#380E40 #400E2F #400E16
triadic
#400E2F #2F400E #0E2F40
tetradic
#400E2F #40380E #0E401F #0E1640
square
#400E2F #40380E #0E401F #0E1640
split-complementary
#400E2F #16400E #0E4038
monochromatic
#190512 #190512 #400E2F #721954 #A42479

Accessibility & contrast

On white

15.89
#400E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E2F
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E2F#FFFFFF#000000##FFFFFF
##400E2F1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131D30
Deuteranopia (green-blind)
#22252E
Tritanopia (blue-blind)
#450E1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400e2f;
/* rgb */ color: rgb(64, 14, 47);
/* oklch */ color: oklch(26.4% 0.087 344.2);
Tailwind
colors: {
  custom: {
    50: '#775167',
    500: '#400e2f',
    950: '#000000',
  },
}
SCSS
$custom: #400e2f;
$custom-light: #775167;
$custom-dark: #000000;
JSON
{
  "hex": "#400e2f",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 320.4,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26401,
    "c": 0.08735,
    "h": 344.2
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#400E2F
secondary
#2F7B49
accent
#E77941
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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