#400C26#400C26

#400C26 is a dark, moderate pink. Relative luminance 0.015; OKLCH L 25.7% C 0.085 H 354.2°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#400C26
RGBrgb(64, 12, 38)
HSLhsl(330, 68%, 15%)
HSVhsv(330, 81%, 25%)
CMYKcmyk(0%, 81.2%, 40.6%, 74.9%)
CIE-LABlab(12.56, 27.45, -3.39)
CIE-LCHlch(12.56, 27.66, 352.97°)
OKLaboklab(25.74% 0.0841 -0.0086)
OKLCHoklch(25.74% 0.085 354.2)
XYZxyz(2.5958, 1.4932, 1.9849)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C26 #0C4026
analogous
#400C40 #400C26 #400C0C
triadic
#400C26 #26400C #0C2640
tetradic
#400C26 #40400C #0C4026 #0C0C40
square
#400C26 #40400C #0C4026 #0C0C40
split-complementary
#400C26 #0C400C #0C4040
monochromatic
#1A050F #1A050F #400C26 #741645 #A71F63

Accessibility & contrast

On white

16.17
#400C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400C26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C26
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C26#FFFFFF#000000##FFFFFF
##400C261.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151B27
Deuteranopia (green-blind)
#242425
Tritanopia (blue-blind)
#460717
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400c26;
/* rgb */ color: rgb(64, 12, 38);
/* oklch */ color: oklch(25.7% 0.085 354.2);
Tailwind
colors: {
  custom: {
    50: '#785060',
    500: '#400c26',
    950: '#000000',
  },
}
SCSS
$custom: #400c26;
$custom-light: #785060;
$custom-dark: #000000;
JSON
{
  "hex": "#400c26",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 330,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25738,
    "c": 0.08455,
    "h": 354.2
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#400C26
secondary
#2C7C54
accent
#EB943D
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090204
muted
#7B7879

Preview Lab

Preview with #400C26

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

Preview Lab → · Contrast checker → · Palette generator →

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