#400F13#400F13

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

Color values

HEX#400F13
RGBrgb(64, 15, 19)
HSLhsl(355, 62%, 15%)
HSVhsv(355, 77%, 25%)
CMYKcmyk(0%, 76.6%, 70.3%, 74.9%)
CIE-LABlab(12.47, 24.02, 10.42)
CIE-LCHlch(12.47, 26.18, 23.46°)
OKLaboklab(25.48% 0.0713 0.0257)
OKLCHoklch(25.48% 0.076 19.8)
XYZxyz(2.4030, 1.4790, 0.7749)
Luminance0.0148 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F13 #0F403C
analogous
#400F2B #400F13 #40230F
triadic
#400F13 #13400F #0F1340
tetradic
#400F13 #2B400F #0F403C #230F40
square
#400F13 #2B400F #0F403C #230F40
split-complementary
#400F13 #0F4023 #0F2B40
monochromatic
#190607 #190607 #400F13 #721B22 #A32630

Accessibility & contrast

On white

16.21
#400F13 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F13
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F13#FFFFFF#000000##FFFFFF
##400F131.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1A13
Deuteranopia (green-blind)
#282412
Tritanopia (blue-blind)
#470511
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f13;
/* rgb */ color: rgb(64, 15, 19);
/* oklch */ color: oklch(25.5% 0.076 19.8);
Tailwind
colors: {
  custom: {
    50: '#795150',
    500: '#400f13',
    950: '#000000',
  },
}
SCSS
$custom: #400f13;
$custom-light: #795150;
$custom-dark: #000000;
JSON
{
  "hex": "#400f13",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 19
  },
  "hsl": {
    "h": 355.102,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25477,
    "c": 0.0758,
    "h": 19.8
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#400F13
secondary
#307A74
accent
#E5D843
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400F13

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

Preview Lab → · Contrast checker → · Palette generator →

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