#4F171B#4F171B

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

Color values

HEX#4F171B
RGBrgb(79, 23, 27)
HSLhsl(356, 55%, 20%)
HSVhsv(356, 71%, 31%)
CMYKcmyk(0%, 70.9%, 65.8%, 69%)
CIE-LABlab(17.25, 26.59, 11.67)
CIE-LCHlch(17.25, 29.04, 23.71°)
OKLaboklab(29.69% 0.0791 0.0284)
OKLCHoklch(29.69% 0.084 19.8)
XYZxyz(3.7290, 2.3547, 1.2948)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F171B #174F4B
analogous
#4F1737 #4F171B #4F2F17
triadic
#4F171B #1B4F17 #171B4F
tetradic
#4F171B #374F17 #174F4B #2F174F
square
#4F171B #374F17 #174F4B #2F174F
split-complementary
#4F171B #174F2F #17374F
monochromatic
#180708 #20090B #4F171B #7E252B #AE333B

Accessibility & contrast

On white

14.28
#4F171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F171B
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F171B#FFFFFF#000000##FFFFFF
##4F171B1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231B
Deuteranopia (green-blind)
#332F1A
Tritanopia (blue-blind)
#570B19
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4f171b;
/* rgb */ color: rgb(79, 23, 27);
/* oklch */ color: oklch(29.7% 0.084 19.8);
Tailwind
colors: {
  custom: {
    50: '#855857',
    500: '#4f171b',
    950: '#000000',
  },
}
SCSS
$custom: #4f171b;
$custom-light: #855857;
$custom-dark: #000000;
JSON
{
  "hex": "#4f171b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 355.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29691,
    "c": 0.08404,
    "h": 19.8
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#4F171B
secondary
#3C8681
accent
#DED44A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0303
muted
#7D7878

Preview Lab

Preview with #4F171B

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

Preview Lab → · Contrast checker → · Palette generator →

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