#4D171F#4D171F

#4D171F is a dark, moderate red. Relative luminance 0.023; OKLCH L 29.4% C 0.081 H 14.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#4D171F
RGBrgb(77, 23, 31)
HSLhsl(351, 54%, 20%)
HSVhsv(351, 70%, 30%)
CMYKcmyk(0%, 70.1%, 59.7%, 69.8%)
CIE-LABlab(16.94, 26.16, 8.35)
CIE-LCHlch(16.94, 27.46, 17.70°)
OKLaboklab(29.42% 0.0787 0.0209)
OKLCHoklch(29.42% 0.081 14.9)
XYZxyz(3.6146, 2.2900, 1.5477)
Luminance0.0229 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D171F #174D45
analogous
#4D173A #4D171F #4D2A17
triadic
#4D171F #1F4D17 #171F4D
tetradic
#4D171F #3A4D17 #174D45 #2A174D
square
#4D171F #3A4D17 #174D45 #2A174D
split-complementary
#4D171F #174D2A #173A4D
monochromatic
#180709 #1E090C #4D171F #7C2532 #AB3345

Accessibility & contrast

On white

14.40
#4D171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4D171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D171F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D171F#FFFFFF#000000##FFFFFF
##4D171F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24231F
Deuteranopia (green-blind)
#322E1E
Tritanopia (blue-blind)
#550D1A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d171f;
/* rgb */ color: rgb(77, 23, 31);
/* oklch */ color: oklch(29.4% 0.081 14.9);
Tailwind
colors: {
  custom: {
    50: '#83575a',
    500: '#4d171f',
    950: '#000000',
  },
}
SCSS
$custom: #4d171f;
$custom-light: #83575a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d171f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 351.111,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29415,
    "c": 0.08145,
    "h": 14.9
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#4D171F
secondary
#3C8479
accent
#DDC84A
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4D171F

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

Preview Lab → · Contrast checker → · Palette generator →

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