#4D171B#4D171B

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

Color values

HEX#4D171B
RGBrgb(77, 23, 27)
HSLhsl(356, 54%, 20%)
HSVhsv(356, 70%, 30%)
CMYKcmyk(0%, 70.1%, 64.9%, 69.8%)
CIE-LABlab(16.85, 25.79, 11.07)
CIE-LCHlch(16.85, 28.07, 23.23°)
OKLaboklab(29.31% 0.0769 0.0271)
OKLCHoklch(29.31% 0.081 19.4)
XYZxyz(3.5651, 2.2702, 1.2872)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D171B #174D49
analogous
#4D1736 #4D171B #4D2E17
triadic
#4D171B #1B4D17 #171B4D
tetradic
#4D171B #364D17 #174D49 #2E174D
square
#4D171B #364D17 #174D49 #2E174D
split-complementary
#4D171B #174D2E #17364D
monochromatic
#180708 #1E090A #4D171B #7C252C #AB333C

Accessibility & contrast

On white

14.44
#4D171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4D171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D171B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D171B#FFFFFF#000000##FFFFFF
##4D171B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25221B
Deuteranopia (green-blind)
#322E1A
Tritanopia (blue-blind)
#550C19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d171b;
/* rgb */ color: rgb(77, 23, 27);
/* oklch */ color: oklch(29.3% 0.081 19.4);
Tailwind
colors: {
  custom: {
    50: '#835757',
    500: '#4d171b',
    950: '#000000',
  },
}
SCSS
$custom: #4d171b;
$custom-light: #835757;
$custom-dark: #000000;
JSON
{
  "hex": "#4d171b",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 355.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29313,
    "c": 0.08147,
    "h": 19.4
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#4D171B
secondary
#3C847F
accent
#DDD24A
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4D171B

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

Preview Lab → · Contrast checker → · Palette generator →

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