#400F18#400F18

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

Color values

HEX#400F18
RGBrgb(64, 15, 24)
HSLhsl(349, 62%, 15%)
HSVhsv(349, 77%, 25%)
CMYKcmyk(0%, 76.6%, 62.5%, 74.9%)
CIE-LABlab(12.59, 24.45, 7.08)
CIE-LCHlch(12.59, 25.46, 16.16°)
OKLaboklab(25.61% 0.0737 0.0177)
OKLCHoklch(25.61% 0.076 13.5)
XYZxyz(2.4503, 1.4979, 1.0241)
Luminance0.0150 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F18 #0F4037
analogous
#400F30 #400F18 #401E0F
triadic
#400F18 #18400F #0F1840
tetradic
#400F18 #30400F #0F4037 #1E0F40
square
#400F18 #30400F #0F4037 #1E0F40
split-complementary
#400F18 #0F401E #0F3040
monochromatic
#190609 #190609 #400F18 #721B2B #A3263D

Accessibility & contrast

On white

16.16
#400F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F18
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F18#FFFFFF#000000##FFFFFF
##400F181.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1A18
Deuteranopia (green-blind)
#282417
Tritanopia (blue-blind)
#470613
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f18;
/* rgb */ color: rgb(64, 15, 24);
/* oklch */ color: oklch(25.6% 0.076 13.5);
Tailwind
colors: {
  custom: {
    50: '#795154',
    500: '#400f18',
    950: '#000000',
  },
}
SCSS
$custom: #400f18;
$custom-light: #795154;
$custom-dark: #000000;
JSON
{
  "hex": "#400f18",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 24
  },
  "hsl": {
    "h": 348.98,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25607,
    "c": 0.07583,
    "h": 13.5
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#400F18
secondary
#307A6D
accent
#E5C743
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #400F18

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

Preview Lab → · Contrast checker → · Palette generator →

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