#40170A#40170A

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

Color values

HEX#40170A
RGBrgb(64, 23, 10)
HSLhsl(14, 73%, 15%)
HSVhsv(14, 84%, 25%)
CMYKcmyk(0%, 64.1%, 84.4%, 74.9%)
CIE-LABlab(13.97, 19.02, 17.09)
CIE-LCHlch(13.97, 25.57, 41.93°)
OKLaboklab(26.56% 0.0536 0.0417)
OKLCHoklch(26.56% 0.068 37.9)
XYZxyz(2.4758, 1.7250, 0.4897)
Luminance0.0173 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40170A #0A3340
analogous
#400A18 #40170A #40320A
triadic
#40170A #0A4017 #170A40
tetradic
#40170A #18400A #0A3340 #320A40
square
#40170A #18400A #0A3340 #320A40
split-complementary
#40170A #0A4032 #0A1840
monochromatic
#1A0A04 #1A0A04 #40170A #752A12 #AA3D1B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40170A#FFFFFF#000000##FFFFFF
##40170A1.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)
#221E09
Deuteranopia (green-blind)
#2C2709
Tritanopia (blue-blind)
#470E14
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40170a;
/* rgb */ color: rgb(64, 23, 10);
/* oklch */ color: oklch(26.6% 0.068 37.9);
Tailwind
colors: {
  custom: {
    50: '#79554b',
    500: '#40170a',
    950: '#000000',
  },
}
SCSS
$custom: #40170a;
$custom-light: #79554b;
$custom-dark: #000000;
JSON
{
  "hex": "#40170a",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 10
  },
  "hsl": {
    "h": 14.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26556,
    "c": 0.06793,
    "h": 37.9
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#40170A
secondary
#29697D
accent
#C3F038
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40170A

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

Preview Lab → · Contrast checker → · Palette generator →

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