#40170E#40170E

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

Color values

HEX#40170E
RGBrgb(64, 23, 14)
HSLhsl(11, 64%, 15%)
HSVhsv(11, 78%, 25%)
CMYKcmyk(0%, 64.1%, 78.1%, 74.9%)
CIE-LABlab(14.03, 19.27, 15.34)
CIE-LCHlch(14.03, 24.63, 38.52°)
OKLaboklab(26.62% 0.0553 0.0371)
OKLCHoklch(26.62% 0.067 33.9)
XYZxyz(2.5003, 1.7348, 0.6186)
Luminance0.0173 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40170E #0E3740
analogous
#400E1E #40170E #40300E
triadic
#40170E #0E4017 #170E40
tetradic
#40170E #1E400E #0E3740 #300E40
square
#40170E #1E400E #0E3740 #300E40
split-complementary
#40170E #0E4030 #0E1E40
monochromatic
#190905 #190905 #40170E #722919 #A43B24

Accessibility & contrast

On white

15.59
#40170E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40170E
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40170E#FFFFFF#000000##FFFFFF
##40170E1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#221E0D
Deuteranopia (green-blind)
#2C270D
Tritanopia (blue-blind)
#470F15
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40170e;
/* rgb */ color: rgb(64, 23, 14);
/* oklch */ color: oklch(26.6% 0.067 33.9);
Tailwind
colors: {
  custom: {
    50: '#79554d',
    500: '#40170e',
    950: '#000000',
  },
}
SCSS
$custom: #40170e;
$custom-light: #79554d;
$custom-dark: #000000;
JSON
{
  "hex": "#40170e",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 10.8,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26617,
    "c": 0.06656,
    "h": 33.9
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#40170E
secondary
#2F6D7B
accent
#C9E741
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40170E

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

Preview Lab → · Contrast checker → · Palette generator →

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