#401004#401004

#401004 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.4% C 0.078 H 35.9°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#401004
RGBrgb(64, 16, 4)
HSLhsl(12, 88%, 13%)
HSVhsv(12, 94%, 25%)
CMYKcmyk(0%, 75%, 93.8%, 74.9%)
CIE-LABlab(12.41, 22.60, 17.45)
CIE-LCHlch(12.41, 28.56, 37.67°)
OKLaboklab(25.35% 0.063 0.0456)
OKLCHoklch(25.35% 0.078 35.9)
XYZxyz(2.3218, 1.4697, 0.2763)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401004 #043440
analogous
#400416 #401004 #402E04
triadic
#401004 #044010 #100440
tetradic
#401004 #164004 #043440 #2E0440
square
#401004 #164004 #043440 #2E0440
split-complementary
#401004 #04402E #041640
monochromatic
#1D0702 #1D0702 #401004 #7A1E08 #B32D0B

Accessibility & contrast

On white

16.23
#401004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#401004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401004
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401004#FFFFFF#000000##FFFFFF
##4010041.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1A03
Deuteranopia (green-blind)
#2A2403
Tritanopia (blue-blind)
#47030D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #401004;
/* rgb */ color: rgb(64, 16, 4);
/* oklch */ color: oklch(25.4% 0.078 35.9);
Tailwind
colors: {
  custom: {
    50: '#7a5148',
    500: '#401004',
    950: '#000000',
  },
}
SCSS
$custom: #401004;
$custom-light: #7a5148;
$custom-dark: #000000;
JSON
{
  "hex": "#401004",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 4
  },
  "hsl": {
    "h": 12,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25354,
    "c": 0.07779,
    "h": 35.9
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#401004
secondary
#1F6E81
accent
#D4FE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #401004

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

Preview Lab → · Contrast checker → · Palette generator →

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