#400313#400313

#400313 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.1% C 0.091 H 12.7°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#400313
RGBrgb(64, 3, 19)
HSLhsl(344, 91%, 13%)
HSVhsv(344, 95%, 25%)
CMYKcmyk(0%, 95.3%, 70.3%, 74.9%)
CIE-LABlab(10.58, 29.33, 7.81)
CIE-LCHlch(10.58, 30.35, 14.91°)
OKLaboklab(24.07% 0.0884 0.0199)
OKLCHoklch(24.07% 0.091 12.7)
XYZxyz(2.2647, 1.2025, 0.7288)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400313 #034030
analogous
#400331 #400313 #401103
triadic
#400313 #134003 #031340
tetradic
#400313 #314003 #034030 #110340
square
#400313 #314003 #034030 #110340
split-complementary
#400313 #034011 #033140
monochromatic
#1D0109 #1D0109 #400313 #7A0624 #B50836

Accessibility & contrast

On white

16.93
#400313 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#400313 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400313
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400313#FFFFFF#000000##FFFFFF
##4003131.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151413
Deuteranopia (green-blind)
#252111
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400313;
/* rgb */ color: rgb(64, 3, 19);
/* oklch */ color: oklch(24.1% 0.091 12.7);
Tailwind
colors: {
  custom: {
    50: '#7a4b50',
    500: '#400313',
    950: '#000000',
  },
}
SCSS
$custom: #400313;
$custom-light: #7a4b50;
$custom-dark: #000000;
JSON
{
  "hex": "#400313",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 19
  },
  "hsl": {
    "h": 344.262,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2407,
    "c": 0.0906,
    "h": 12.7
  },
  "luminance": 0.01202
}

Semantic roles & 50–950 ramp

primary
#400313
secondary
#1D8267
accent
#FFC729
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400313

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

Preview Lab → · Contrast checker → · Palette generator →

#400313 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva