#42170B#42170B

#42170B is a dark, moderate red. Relative luminance 0.018; OKLCH L 26.9% C 0.070 H 36.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#42170B
RGBrgb(66, 23, 11)
HSLhsl(13, 71%, 15%)
HSVhsv(13, 83%, 26%)
CMYKcmyk(0%, 65.2%, 83.3%, 74.1%)
CIE-LABlab(14.38, 19.99, 17.27)
CIE-LCHlch(14.38, 26.42, 40.82°)
OKLaboklab(26.94% 0.0566 0.0417)
OKLCHoklch(26.94% 0.07 36.4)
XYZxyz(2.6138, 1.7956, 0.5255)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42170B #0B3642
analogous
#420B1A #42170B #42330B
triadic
#42170B #0B4217 #170B42
tetradic
#42170B #1A420B #0B3642 #330B42
square
#42170B #1A420B #0B3642 #330B42
split-complementary
#42170B #0B4233 #0B1A42
monochromatic
#1A0904 #1A0904 #42170B #762914 #AB3C1C

Accessibility & contrast

On white

15.45
#42170B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#42170B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42170B
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42170B#FFFFFF#000000##FFFFFF
##42170B1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231E0A
Deuteranopia (green-blind)
#2D280A
Tritanopia (blue-blind)
#490D14
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #42170b;
/* rgb */ color: rgb(66, 23, 11);
/* oklch */ color: oklch(26.9% 0.070 36.4);
Tailwind
colors: {
  custom: {
    50: '#7b564b',
    500: '#42170b',
    950: '#000000',
  },
}
SCSS
$custom: #42170b;
$custom-light: #7b564b;
$custom-dark: #000000;
JSON
{
  "hex": "#42170b",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 11
  },
  "hsl": {
    "h": 13.091,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26942,
    "c": 0.07026,
    "h": 36.4
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#42170B
secondary
#2A6C7F
accent
#C7EE3A
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #42170B

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

Preview Lab → · Contrast checker → · Palette generator →

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