#42171E#42171E

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

Color values

HEX#42171E
RGBrgb(66, 23, 30)
HSLhsl(350, 48%, 17%)
HSVhsv(350, 65%, 26%)
CMYKcmyk(0%, 65.2%, 54.5%, 74.1%)
CIE-LABlab(14.76, 21.60, 5.73)
CIE-LCHlch(14.76, 22.34, 14.86°)
OKLaboklab(27.36% 0.0653 0.0147)
OKLCHoklch(27.36% 0.067 12.6)
XYZxyz(2.7877, 1.8651, 1.4412)
Luminance0.0186 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42171E #17423B
analogous
#421733 #42171E #422617
triadic
#42171E #1E4217 #171E42
tetradic
#42171E #334217 #17423B #261742
square
#42171E #334217 #17423B #261742
split-complementary
#42171E #174226 #173342
monochromatic
#17080A #17080A #42171E #6F2733 #9D3747

Accessibility & contrast

On white

15.29
#42171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42171E
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42171E#FFFFFF#000000##FFFFFF
##42171E1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42171e;
/* rgb */ color: rgb(66, 23, 30);
/* oklch */ color: oklch(27.4% 0.067 12.6);
Tailwind
colors: {
  custom: {
    50: '#795659',
    500: '#42171e',
    950: '#000000',
  },
}
SCSS
$custom: #42171e;
$custom-light: #795659;
$custom-dark: #000000;
JSON
{
  "hex": "#42171e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 350.233,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2736,
    "c": 0.06694,
    "h": 12.6
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#42171E
secondary
#3C796F
accent
#D8C250
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #42171E

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

Preview Lab → · Contrast checker → · Palette generator →

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