#400F17#400F17

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

Color values

HEX#400F17
RGBrgb(64, 15, 23)
HSLhsl(350, 62%, 15%)
HSVhsv(350, 77%, 25%)
CMYKcmyk(0%, 76.6%, 64.1%, 74.9%)
CIE-LABlab(12.57, 24.36, 7.79)
CIE-LCHlch(12.57, 25.58, 17.74°)
OKLaboklab(25.58% 0.0732 0.0194)
OKLCHoklch(25.58% 0.076 14.8)
XYZxyz(2.4401, 1.4938, 0.9703)
Luminance0.0149 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F17 #0F4038
analogous
#400F2F #400F17 #401F0F
triadic
#400F17 #17400F #0F1740
tetradic
#400F17 #2F400F #0F4038 #1F0F40
square
#400F17 #2F400F #0F4038 #1F0F40
split-complementary
#400F17 #0F401F #0F2F40
monochromatic
#190609 #190609 #400F17 #721B29 #A3263B

Accessibility & contrast

On white

16.17
#400F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F17
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F17#FFFFFF#000000##FFFFFF
##400F171.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1A17
Deuteranopia (green-blind)
#282416
Tritanopia (blue-blind)
#470612
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f17;
/* rgb */ color: rgb(64, 15, 23);
/* oklch */ color: oklch(25.6% 0.076 14.8);
Tailwind
colors: {
  custom: {
    50: '#795153',
    500: '#400f17',
    950: '#000000',
  },
}
SCSS
$custom: #400f17;
$custom-light: #795153;
$custom-dark: #000000;
JSON
{
  "hex": "#400f17",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 350.204,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25579,
    "c": 0.07576,
    "h": 14.8
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#400F17
secondary
#307A6E
accent
#E5CB43
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #400F17

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

Preview Lab → · Contrast checker → · Palette generator →

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