#42171C#42171C

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

Color values

HEX#42171C
RGBrgb(66, 23, 28)
HSLhsl(353, 48%, 17%)
HSVhsv(353, 65%, 26%)
CMYKcmyk(0%, 65.2%, 57.6%, 74.1%)
CIE-LABlab(14.71, 21.38, 7.11)
CIE-LCHlch(14.71, 22.53, 18.39°)
OKLaboklab(27.3% 0.0644 0.0179)
OKLCHoklch(27.3% 0.067 15.6)
XYZxyz(2.7630, 1.8552, 1.3110)
Luminance0.0186 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42171C #17423D
analogous
#421732 #42171C #422717
triadic
#42171C #1C4217 #171C42
tetradic
#42171C #324217 #17423D #271742
square
#42171C #324217 #17423D #271742
split-complementary
#42171C #174227 #173242
monochromatic
#17080A #17080A #42171C #6F272F #9D3743

Accessibility & contrast

On white

15.32
#42171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42171C
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42171C#FFFFFF#000000##FFFFFF
##42171C1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21201C
Deuteranopia (green-blind)
#2C281B
Tritanopia (blue-blind)
#481119
Achromatopsia (no color)
#252525

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#42171C
secondary
#3C7972
accent
#D8C850
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #42171C

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

Preview Lab → · Contrast checker → · Palette generator →

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