#400F0D#400F0D

#400F0D is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.4% C 0.077 H 26.5°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#400F0D
RGBrgb(64, 15, 13)
HSLhsl(2, 66%, 15%)
HSVhsv(2, 80%, 25%)
CMYKcmyk(0%, 76.6%, 79.7%, 74.9%)
CIE-LABlab(12.36, 23.60, 13.60)
CIE-LCHlch(12.36, 27.24, 29.97°)
OKLaboklab(25.35% 0.0686 0.0341)
OKLCHoklch(25.35% 0.077 26.5)
XYZxyz(2.3581, 1.4610, 0.5385)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F0D #0D3E40
analogous
#400D24 #400F0D #40280D
triadic
#400F0D #0D400F #0F0D40
tetradic
#400F0D #24400D #0D3E40 #280D40
square
#400F0D #24400D #0D3E40 #280D40
split-complementary
#400F0D #0D4028 #0D2440
monochromatic
#190605 #190605 #400F0D #731B17 #A62722

Accessibility & contrast

On white

16.25
#400F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F0D
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F0D#FFFFFF#000000##FFFFFF
##400F0D1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1A0C
Deuteranopia (green-blind)
#29240B
Tritanopia (blue-blind)
#47030F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f0d;
/* rgb */ color: rgb(64, 15, 13);
/* oklch */ color: oklch(25.4% 0.077 26.5);
Tailwind
colors: {
  custom: {
    50: '#79514c',
    500: '#400f0d',
    950: '#000000',
  },
}
SCSS
$custom: #400f0d;
$custom-light: #79514c;
$custom-dark: #000000;
JSON
{
  "hex": "#400f0d",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 13
  },
  "hsl": {
    "h": 2.353,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25353,
    "c": 0.07657,
    "h": 26.5
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#400F0D
secondary
#2D787C
accent
#E2E93F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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