#400218#400218

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

Color values

HEX#400218
RGBrgb(64, 2, 24)
HSLhsl(339, 94%, 13%)
HSVhsv(339, 97%, 25%)
CMYKcmyk(0%, 96.9%, 62.5%, 74.9%)
CIE-LABlab(10.56, 30.18, 4.26)
CIE-LCHlch(10.56, 30.48, 8.04°)
OKLaboklab(24.1% 0.0922 0.0109)
OKLCHoklch(24.1% 0.093 6.8)
XYZxyz(2.3012, 1.1997, 0.9744)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400218 #02402A
analogous
#400237 #400218 #400B02
triadic
#400218 #184002 #021840
tetradic
#400218 #374002 #02402A #0B0240
square
#400218 #374002 #02402A #0B0240
split-complementary
#400218 #02400B #023740
monochromatic
#1E010B #1E010B #400218 #7B042E #B70645

Accessibility & contrast

On white

16.94
#400218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400218
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400218#FFFFFF#000000##FFFFFF
##4002181.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400218;
/* rgb */ color: rgb(64, 2, 24);
/* oklch */ color: oklch(24.1% 0.093 6.8);
Tailwind
colors: {
  custom: {
    50: '#7a4b54',
    500: '#400218',
    950: '#000000',
  },
}
SCSS
$custom: #400218;
$custom-light: #7a4b54;
$custom-dark: #000000;
JSON
{
  "hex": "#400218",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 338.71,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.241,
    "c": 0.09284,
    "h": 6.8
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#400218
secondary
#1B835E
accent
#FFB329
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400218

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

Preview Lab → · Contrast checker → · Palette generator →

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