#401218#401218

#401218 is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.0% C 0.072 H 15.9°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#401218
RGBrgb(64, 18, 24)
HSLhsl(352, 56%, 16%)
HSVhsv(352, 72%, 25%)
CMYKcmyk(0%, 71.9%, 62.5%, 74.9%)
CIE-LABlab(13.16, 22.91, 7.86)
CIE-LCHlch(13.16, 24.22, 18.93°)
OKLaboklab(26.03% 0.0688 0.0196)
OKLCHoklch(26.03% 0.072 15.9)
XYZxyz(2.4957, 1.5889, 1.0392)
Luminance0.0159 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401218 #12403A
analogous
#40122F #401218 #402312
triadic
#401218 #184012 #121840
tetradic
#401218 #2F4012 #12403A #231240
square
#401218 #2F4012 #12403A #231240
split-complementary
#401218 #124023 #122F40
monochromatic
#180709 #180709 #401218 #701F2A #A02D3C

Accessibility & contrast

On white

15.94
#401218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#401218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401218
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401218#FFFFFF#000000##FFFFFF
##4012181.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1C18
Deuteranopia (green-blind)
#292517
Tritanopia (blue-blind)
#470A14
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401218;
/* rgb */ color: rgb(64, 18, 24);
/* oklch */ color: oklch(26.0% 0.072 15.9);
Tailwind
colors: {
  custom: {
    50: '#785354',
    500: '#401218',
    950: '#000000',
  },
}
SCSS
$custom: #401218;
$custom-light: #785354;
$custom-dark: #000000;
JSON
{
  "hex": "#401218",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 352.174,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2603,
    "c": 0.07156,
    "h": 15.9
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#401218
secondary
#357970
accent
#DFCC48
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #401218

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

Preview Lab → · Contrast checker → · Palette generator →

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