#40170B#40170B

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

Color values

HEX#40170B
RGBrgb(64, 23, 11)
HSLhsl(14, 71%, 15%)
HSVhsv(14, 83%, 25%)
CMYKcmyk(0%, 64.1%, 82.8%, 74.9%)
CIE-LABlab(13.99, 19.08, 16.69)
CIE-LCHlch(13.99, 25.35, 41.17°)
OKLaboklab(26.57% 0.054 0.0406)
OKLCHoklch(26.57% 0.068 37)
XYZxyz(2.4814, 1.7273, 0.5193)
Luminance0.0173 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40170B #0B3440
analogous
#400B1A #40170B #40320B
triadic
#40170B #0B4017 #170B40
tetradic
#40170B #1A400B #0B3440 #320B40
square
#40170B #1A400B #0B3440 #320B40
split-complementary
#40170B #0B4032 #0B1A40
monochromatic
#1A0904 #1A0904 #40170B #742A14 #A83D1D

Accessibility & contrast

On white

15.61
#40170B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40170B
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40170B#FFFFFF#000000##FFFFFF
##40170B1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221E0A
Deuteranopia (green-blind)
#2C270A
Tritanopia (blue-blind)
#470E14
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40170b;
/* rgb */ color: rgb(64, 23, 11);
/* oklch */ color: oklch(26.6% 0.068 37.0);
Tailwind
colors: {
  custom: {
    50: '#79554b',
    500: '#40170b',
    950: '#000000',
  },
}
SCSS
$custom: #40170b;
$custom-light: #79554b;
$custom-dark: #000000;
JSON
{
  "hex": "#40170b",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 11
  },
  "hsl": {
    "h": 13.585,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2657,
    "c": 0.06758,
    "h": 37
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#40170B
secondary
#2A6A7D
accent
#C5ED3A
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40170B

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

Preview Lab → · Contrast checker → · Palette generator →

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