#400217#400217

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

Color values

HEX#400217
RGBrgb(64, 2, 23)
HSLhsl(340, 94%, 13%)
HSVhsv(340, 97%, 25%)
CMYKcmyk(0%, 96.9%, 64.1%, 74.9%)
CIE-LABlab(10.52, 30.10, 4.98)
CIE-LCHlch(10.52, 30.51, 9.39°)
OKLaboklab(24.07% 0.0918 0.0127)
OKLCHoklch(24.07% 0.093 7.9)
XYZxyz(2.2909, 1.1956, 0.9206)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400217 #02402B
analogous
#400236 #400217 #400C02
triadic
#400217 #174002 #021740
tetradic
#400217 #364002 #02402B #0C0240
square
#400217 #364002 #02402B #0C0240
split-complementary
#400217 #02400C #023640
monochromatic
#1E010B #1E010B #400217 #7B042C #B70642

Accessibility & contrast

On white

16.95
#400217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400217
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400217#FFFFFF#000000##FFFFFF
##4002171.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400217;
/* rgb */ color: rgb(64, 2, 23);
/* oklch */ color: oklch(24.1% 0.093 7.9);
Tailwind
colors: {
  custom: {
    50: '#7a4b53',
    500: '#400217',
    950: '#000000',
  },
}
SCSS
$custom: #400217;
$custom-light: #7a4b53;
$custom-dark: #000000;
JSON
{
  "hex": "#400217",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 23
  },
  "hsl": {
    "h": 339.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24069,
    "c": 0.09262,
    "h": 7.9
  },
  "luminance": 0.01195
}

Semantic roles & 50–950 ramp

primary
#400217
secondary
#1B8360
accent
#FFB629
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400217

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

Preview Lab → · Contrast checker → · Palette generator →

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