#400F12#400F12

#400F12 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.5% C 0.076 H 21.0°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400F12
RGBrgb(64, 15, 18)
HSLhsl(356, 62%, 15%)
HSVhsv(356, 77%, 25%)
CMYKcmyk(0%, 76.6%, 71.9%, 74.9%)
CIE-LABlab(12.45, 23.94, 11.01)
CIE-LCHlch(12.45, 26.35, 24.71°)
OKLaboklab(25.45% 0.0709 0.0271)
OKLCHoklch(25.45% 0.076 21)
XYZxyz(2.3946, 1.4756, 0.7309)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F12 #0F403D
analogous
#400F2A #400F12 #40240F
triadic
#400F12 #12400F #0F1240
tetradic
#400F12 #2A400F #0F403D #240F40
square
#400F12 #2A400F #0F403D #240F40
split-complementary
#400F12 #0F4024 #0F2A40
monochromatic
#190607 #190607 #400F12 #721B20 #A3262E

Accessibility & contrast

On white

16.22
#400F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F12
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F12#FFFFFF#000000##FFFFFF
##400F121.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1A12
Deuteranopia (green-blind)
#282411
Tritanopia (blue-blind)
#470410
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f12;
/* rgb */ color: rgb(64, 15, 18);
/* oklch */ color: oklch(25.5% 0.076 21.0);
Tailwind
colors: {
  custom: {
    50: '#79514f',
    500: '#400f12',
    950: '#000000',
  },
}
SCSS
$custom: #400f12;
$custom-light: #79514f;
$custom-dark: #000000;
JSON
{
  "hex": "#400f12",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 18
  },
  "hsl": {
    "h": 356.327,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25454,
    "c": 0.07587,
    "h": 21
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#400F12
secondary
#307A76
accent
#E5DB43
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400F12

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

Preview Lab → · Contrast checker → · Palette generator →

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