#4A171F#4A171F

#4A171F is a dark, moderate red. Relative luminance 0.022; OKLCH L 28.9% C 0.078 H 14.0°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#4A171F
RGBrgb(74, 23, 31)
HSLhsl(351, 53%, 19%)
HSVhsv(351, 69%, 29%)
CMYKcmyk(0%, 68.9%, 58.1%, 71%)
CIE-LABlab(16.35, 24.97, 7.44)
CIE-LCHlch(16.35, 26.05, 16.58°)
OKLaboklab(28.86% 0.0753 0.0188)
OKLCHoklch(28.86% 0.078 14)
XYZxyz(3.3780, 2.1680, 1.5366)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A171F #174A42
analogous
#4A1739 #4A171F #4A2917
triadic
#4A171F #1F4A17 #171F4A
tetradic
#4A171F #394A17 #174A42 #29174A
square
#4A171F #394A17 #174A42 #29174A
split-complementary
#4A171F #174A29 #17394A
monochromatic
#17070A #1B080B #4A171F #792633 #A73446

Accessibility & contrast

On white

14.65
#4A171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#4A171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A171F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A171F#FFFFFF#000000##FFFFFF
##4A171F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23221F
Deuteranopia (green-blind)
#302C1E
Tritanopia (blue-blind)
#510F1A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4a171f;
/* rgb */ color: rgb(74, 23, 31);
/* oklch */ color: oklch(28.9% 0.078 14.0);
Tailwind
colors: {
  custom: {
    50: '#80575a',
    500: '#4a171f',
    950: '#000000',
  },
}
SCSS
$custom: #4a171f;
$custom-light: #80575a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a171f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 350.588,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28856,
    "c": 0.0776,
    "h": 14
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#4A171F
secondary
#3C8176
accent
#DCC54C
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4A171F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva