#40170C#40170C

#40170C is a dark, moderate red. Relative luminance 0.017; OKLCH L 26.6% C 0.067 H 36.0°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#40170C
RGBrgb(64, 23, 12)
HSLhsl(13, 68%, 15%)
HSVhsv(13, 81%, 25%)
CMYKcmyk(0%, 64.1%, 81.2%, 74.9%)
CIE-LABlab(14.00, 19.14, 16.26)
CIE-LCHlch(14.00, 25.12, 40.35°)
OKLaboklab(26.58% 0.0544 0.0395)
OKLCHoklch(26.58% 0.067 36)
XYZxyz(2.4874, 1.7296, 0.5506)
Luminance0.0173 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40170C #0C3540
analogous
#400C1B #40170C #40310C
triadic
#40170C #0C4017 #170C40
tetradic
#40170C #1B400C #0C3540 #310C40
square
#40170C #1B400C #0C3540 #310C40
split-complementary
#40170C #0C4031 #0C1B40
monochromatic
#1A0905 #1A0905 #40170C #742A16 #A73C1F

Accessibility & contrast

On white

15.60
#40170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40170C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40170C
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40170C#FFFFFF#000000##FFFFFF
##40170C1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221E0B
Deuteranopia (green-blind)
#2C270B
Tritanopia (blue-blind)
#470E15
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40170c;
/* rgb */ color: rgb(64, 23, 12);
/* oklch */ color: oklch(26.6% 0.067 36.0);
Tailwind
colors: {
  custom: {
    50: '#79554c',
    500: '#40170c',
    950: '#000000',
  },
}
SCSS
$custom: #40170c;
$custom-light: #79554c;
$custom-dark: #000000;
JSON
{
  "hex": "#40170c",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 12.692,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26585,
    "c": 0.06724,
    "h": 36
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#40170C
secondary
#2C6B7C
accent
#C6EB3D
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40170C

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

Preview Lab → · Contrast checker → · Palette generator →

#40170C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva