#400317#400317

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

Color values

HEX#400317
RGBrgb(64, 3, 23)
HSLhsl(340, 91%, 13%)
HSVhsv(340, 95%, 25%)
CMYKcmyk(0%, 95.3%, 64.1%, 74.9%)
CIE-LABlab(10.68, 29.64, 5.20)
CIE-LCHlch(10.68, 30.09, 9.95°)
OKLaboklab(24.19% 0.0903 0.0132)
OKLCHoklch(24.19% 0.091 8.3)
XYZxyz(2.3018, 1.2173, 0.9242)
Luminance0.0122 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400317 #03402C
analogous
#400335 #400317 #400D03
triadic
#400317 #174003 #031740
tetradic
#400317 #354003 #03402C #0D0340
square
#400317 #354003 #03402C #0D0340
split-complementary
#400317 #03400D #033540
monochromatic
#1D010B #1D010B #400317 #7A062C #B50841

Accessibility & contrast

On white

16.89
#400317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400317
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400317#FFFFFF#000000##FFFFFF
##4003171.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141517
Deuteranopia (green-blind)
#242115
Tritanopia (blue-blind)
#47000B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400317;
/* rgb */ color: rgb(64, 3, 23);
/* oklch */ color: oklch(24.2% 0.091 8.3);
Tailwind
colors: {
  custom: {
    50: '#7a4b53',
    500: '#400317',
    950: '#000000',
  },
}
SCSS
$custom: #400317;
$custom-light: #7a4b53;
$custom-dark: #000000;
JSON
{
  "hex": "#400317",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 23
  },
  "hsl": {
    "h": 340.328,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24185,
    "c": 0.09121,
    "h": 8.3
  },
  "luminance": 0.01217
}

Semantic roles & 50–950 ramp

primary
#400317
secondary
#1D8261
accent
#FFB929
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400317

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

Preview Lab → · Contrast checker → · Palette generator →

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