#400F04#400F04

#400F04 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.2% C 0.079 H 35.0°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#400F04
RGBrgb(64, 15, 4)
HSLhsl(11, 88%, 13%)
HSVhsv(11, 94%, 25%)
CMYKcmyk(0%, 76.6%, 93.8%, 74.9%)
CIE-LABlab(12.23, 23.11, 17.20)
CIE-LCHlch(12.23, 28.81, 36.66°)
OKLaboklab(25.21% 0.0646 0.0452)
OKLCHoklch(25.21% 0.079 35)
XYZxyz(2.3074, 1.4408, 0.2714)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F04 #043540
analogous
#400417 #400F04 #402D04
triadic
#400F04 #04400F #0F0440
tetradic
#400F04 #174004 #043540 #2D0440
square
#400F04 #174004 #043540 #2D0440
split-complementary
#400F04 #04402D #041740
monochromatic
#1D0702 #1D0702 #400F04 #7A1C08 #B32A0B

Accessibility & contrast

On white

16.30
#400F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400F04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F04
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F04#FFFFFF#000000##FFFFFF
##400F041.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f04;
/* rgb */ color: rgb(64, 15, 4);
/* oklch */ color: oklch(25.2% 0.079 35.0);
Tailwind
colors: {
  custom: {
    50: '#7a5148',
    500: '#400f04',
    950: '#000000',
  },
}
SCSS
$custom: #400f04;
$custom-light: #7a5148;
$custom-dark: #000000;
JSON
{
  "hex": "#400f04",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 4
  },
  "hsl": {
    "h": 11,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25212,
    "c": 0.07884,
    "h": 35
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#400F04
secondary
#1F6F81
accent
#D7FE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400F04

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

Preview Lab → · Contrast checker → · Palette generator →

#400F04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva