#400C23#400C23

#400C23 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.6% C 0.083 H 357.8°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400C23
RGBrgb(64, 12, 35)
HSLhsl(333, 68%, 15%)
HSVhsv(333, 81%, 25%)
CMYKcmyk(0%, 81.2%, 45.3%, 74.9%)
CIE-LABlab(12.45, 27.06, -1.33)
CIE-LCHlch(12.45, 27.09, 357.18°)
OKLaboklab(25.61% 0.083 -0.0032)
OKLCHoklch(25.61% 0.083 357.8)
XYZxyz(2.5494, 1.4746, 1.7402)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C23 #0C4029
analogous
#400C3D #400C23 #400F0C
triadic
#400C23 #23400C #0C2340
tetradic
#400C23 #3D400C #0C4029 #0F0C40
square
#400C23 #3D400C #0C4029 #0F0C40
split-complementary
#400C23 #0C400F #0C3D40
monochromatic
#1A050E #1A050E #400C23 #74163F #A71F5B

Accessibility & contrast

On white

16.22
#400C23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400C23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C23
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C23#FFFFFF#000000##FFFFFF
##400C231.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161A24
Deuteranopia (green-blind)
#252422
Tritanopia (blue-blind)
#460616
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c23;
/* rgb */ color: rgb(64, 12, 35);
/* oklch */ color: oklch(25.6% 0.083 357.8);
Tailwind
colors: {
  custom: {
    50: '#78505d',
    500: '#400c23',
    950: '#000000',
  },
}
SCSS
$custom: #400c23;
$custom-light: #78505d;
$custom-dark: #000000;
JSON
{
  "hex": "#400c23",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 35
  },
  "hsl": {
    "h": 333.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25612,
    "c": 0.08306,
    "h": 357.8
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#400C23
secondary
#2C7C59
accent
#EB9E3D
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C23

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

Preview Lab → · Contrast checker → · Palette generator →

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