#42171F#42171F

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

Color values

HEX#42171F
RGBrgb(66, 23, 31)
HSLhsl(349, 48%, 17%)
HSVhsv(349, 65%, 26%)
CMYKcmyk(0%, 65.2%, 53%, 74.1%)
CIE-LABlab(14.79, 21.71, 5.04)
CIE-LCHlch(14.79, 22.29, 13.07°)
OKLaboklab(27.39% 0.0658 0.013)
OKLCHoklch(27.39% 0.067 11.2)
XYZxyz(2.8007, 1.8703, 1.5096)
Luminance0.0187 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42171F #17423A
analogous
#421735 #42171F #422417
triadic
#42171F #1F4217 #171F42
tetradic
#42171F #354217 #17423A #241742
square
#42171F #354217 #17423A #241742
split-complementary
#42171F #174224 #173542
monochromatic
#17080B #17080B #42171F #6F2734 #9D374A

Accessibility & contrast

On white

15.28
#42171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42171F
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42171F#FFFFFF#000000##FFFFFF
##42171F1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20201F
Deuteranopia (green-blind)
#2B281E
Tritanopia (blue-blind)
#48111A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #42171f;
/* rgb */ color: rgb(66, 23, 31);
/* oklch */ color: oklch(27.4% 0.067 11.2);
Tailwind
colors: {
  custom: {
    50: '#79565a',
    500: '#42171f',
    950: '#000000',
  },
}
SCSS
$custom: #42171f;
$custom-light: #79565a;
$custom-dark: #000000;
JSON
{
  "hex": "#42171f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 348.837,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2739,
    "c": 0.06706,
    "h": 11.2
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#42171F
secondary
#3C796E
accent
#D8BF50
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #42171F

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

Preview Lab → · Contrast checker → · Palette generator →

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