#400F23#400F23

#400F23 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.0% C 0.079 H 359.1°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#400F23
RGBrgb(64, 15, 35)
HSLhsl(336, 62%, 15%)
HSVhsv(336, 77%, 25%)
CMYKcmyk(0%, 76.6%, 45.3%, 74.9%)
CIE-LABlab(12.94, 25.68, -0.60)
CIE-LCHlch(12.94, 25.69, 358.66°)
OKLaboklab(25.98% 0.0786 -0.0013)
OKLCHoklch(25.98% 0.079 359.1)
XYZxyz(2.5887, 1.5533, 1.7533)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F23 #0F402C
analogous
#400F3B #400F23 #40130F
triadic
#400F23 #23400F #0F2340
tetradic
#400F23 #3B400F #0F402C #130F40
square
#400F23 #3B400F #0F402C #130F40
split-complementary
#400F23 #0F4013 #0F3B40
monochromatic
#19060E #19060E #400F23 #721B3E #A32659

Accessibility & contrast

On white

16.02
#400F23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400F23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F23
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F23#FFFFFF#000000##FFFFFF
##400F231.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181C24
Deuteranopia (green-blind)
#262522
Tritanopia (blue-blind)
#460A17
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f23;
/* rgb */ color: rgb(64, 15, 35);
/* oklch */ color: oklch(26.0% 0.079 359.1);
Tailwind
colors: {
  custom: {
    50: '#78515d',
    500: '#400f23',
    950: '#000000',
  },
}
SCSS
$custom: #400f23;
$custom-light: #78515d;
$custom-dark: #000000;
JSON
{
  "hex": "#400f23",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 35
  },
  "hsl": {
    "h": 335.51,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25979,
    "c": 0.07864,
    "h": 359.1
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#400F23
secondary
#307A5C
accent
#E5A343
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400F23

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

Preview Lab → · Contrast checker → · Palette generator →

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