#42171B#42171B

#42171B is a dark, moderate red. Relative luminance 0.018; OKLCH L 27.3% C 0.067 H 17.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#42171B
RGBrgb(66, 23, 27)
HSLhsl(354, 48%, 17%)
HSVhsv(354, 65%, 26%)
CMYKcmyk(0%, 65.2%, 59.1%, 74.1%)
CIE-LABlab(14.68, 21.27, 7.79)
CIE-LCHlch(14.68, 22.65, 20.13°)
OKLaboklab(27.27% 0.0639 0.0196)
OKLCHoklch(27.27% 0.067 17)
XYZxyz(2.7512, 1.8505, 1.2490)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42171B #17423E
analogous
#421730 #42171B #422917
triadic
#42171B #1B4217 #171B42
tetradic
#42171B #304217 #17423E #291742
square
#42171B #304217 #17423E #291742
split-complementary
#42171B #174229 #173042
monochromatic
#170809 #170809 #42171B #6F272E #9D3740

Accessibility & contrast

On white

15.33
#42171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#42171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42171B
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42171B#FFFFFF#000000##FFFFFF
##42171B1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#211F1B
Deuteranopia (green-blind)
#2C281A
Tritanopia (blue-blind)
#491019
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #42171b;
/* rgb */ color: rgb(66, 23, 27);
/* oklch */ color: oklch(27.3% 0.067 17.0);
Tailwind
colors: {
  custom: {
    50: '#795657',
    500: '#42171b',
    950: '#000000',
  },
}
SCSS
$custom: #42171b;
$custom-light: #795657;
$custom-dark: #000000;
JSON
{
  "hex": "#42171b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 354.419,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27273,
    "c": 0.06681,
    "h": 17
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#42171B
secondary
#3C7973
accent
#D8CB50
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #42171B

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

Preview Lab → · Contrast checker → · Palette generator →

#42171B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva