#400E17#400E17

#400E17 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.4% C 0.077 H 14.1°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#400E17
RGBrgb(64, 14, 23)
HSLhsl(349, 64%, 15%)
HSVhsv(349, 78%, 25%)
CMYKcmyk(0%, 78.1%, 64.1%, 74.9%)
CIE-LABlab(12.39, 24.84, 7.55)
CIE-LCHlch(12.39, 25.96, 16.91°)
OKLaboklab(25.45% 0.0748 0.0188)
OKLCHoklch(25.45% 0.077 14.1)
XYZxyz(2.4263, 1.4663, 0.9657)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E17 #0E4037
analogous
#400E30 #400E17 #401E0E
triadic
#400E17 #17400E #0E1740
tetradic
#400E17 #30400E #0E4037 #1E0E40
square
#400E17 #30400E #0E4037 #1E0E40
split-complementary
#400E17 #0E401E #0E3040
monochromatic
#190509 #190509 #400E17 #721929 #A4243B

Accessibility & contrast

On white

16.24
#400E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E17
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E17#FFFFFF#000000##FFFFFF
##400E171.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1A17
Deuteranopia (green-blind)
#272416
Tritanopia (blue-blind)
#470412
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400e17;
/* rgb */ color: rgb(64, 14, 23);
/* oklch */ color: oklch(25.4% 0.077 14.1);
Tailwind
colors: {
  custom: {
    50: '#795053',
    500: '#400e17',
    950: '#000000',
  },
}
SCSS
$custom: #400e17;
$custom-light: #795053;
$custom-dark: #000000;
JSON
{
  "hex": "#400e17",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 23
  },
  "hsl": {
    "h": 349.2,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25447,
    "c": 0.07712,
    "h": 14.1
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#400E17
secondary
#2F7B6D
accent
#E7C941
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #400E17

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

Preview Lab → · Contrast checker → · Palette generator →

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