#4F171F#4F171F

#4F171F is a dark, moderate red. Relative luminance 0.024; OKLCH L 29.8% C 0.084 H 15.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#4F171F
RGBrgb(79, 23, 31)
HSLhsl(351, 55%, 20%)
HSVhsv(351, 71%, 31%)
CMYKcmyk(0%, 70.9%, 60.8%, 69%)
CIE-LABlab(17.34, 26.93, 8.96)
CIE-LCHlch(17.34, 28.38, 18.39°)
OKLaboklab(29.79% 0.0809 0.0223)
OKLCHoklch(29.79% 0.084 15.4)
XYZxyz(3.7785, 2.3745, 1.5554)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F171F #174F47
analogous
#4F173B #4F171F #4F2B17
triadic
#4F171F #1F4F17 #171F4F
tetradic
#4F171F #3B4F17 #174F47 #2B174F
square
#4F171F #3B4F17 #174F47 #2B174F
split-complementary
#4F171F #174F2B #173B4F
monochromatic
#180709 #20090C #4F171F #7E2532 #AE3344

Accessibility & contrast

On white

14.24
#4F171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4F171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F171F
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F171F#FFFFFF#000000##FFFFFF
##4F171F1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231F
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#570D1A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4f171f;
/* rgb */ color: rgb(79, 23, 31);
/* oklch */ color: oklch(29.8% 0.084 15.4);
Tailwind
colors: {
  custom: {
    50: '#84585a',
    500: '#4f171f',
    950: '#000000',
  },
}
SCSS
$custom: #4f171f;
$custom-light: #84585a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f171f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 351.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29791,
    "c": 0.08397,
    "h": 15.4
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#4F171F
secondary
#3C867C
accent
#DEC94A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0303
muted
#7C7878

Preview Lab

Preview with #4F171F

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

Preview Lab → · Contrast checker → · Palette generator →

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