#42151F#42151F

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

Color values

HEX#42151F
RGBrgb(66, 21, 31)
HSLhsl(347, 52%, 17%)
HSVhsv(347, 68%, 26%)
CMYKcmyk(0%, 68.2%, 53%, 74.1%)
CIE-LABlab(14.37, 22.84, 4.44)
CIE-LCHlch(14.37, 23.27, 11.01°)
OKLaboklab(27.07% 0.0693 0.0115)
OKLCHoklch(27.07% 0.07 9.4)
XYZxyz(2.7625, 1.7938, 1.4968)
Luminance0.0179 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42151F #154238
analogous
#421536 #42151F #422215
triadic
#42151F #1F4215 #151F42
tetradic
#42151F #364215 #154238 #221542
square
#42151F #364215 #154238 #221542
split-complementary
#42151F #154222 #153642
monochromatic
#17070B #17070B #42151F #702435 #9F334B

Accessibility & contrast

On white

15.45
#42151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#42151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42151F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42151F#FFFFFF#000000##FFFFFF
##42151F1.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)
#1F1F1F
Deuteranopia (green-blind)
#2A281E
Tritanopia (blue-blind)
#480F19
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #42151f;
/* rgb */ color: rgb(66, 21, 31);
/* oklch */ color: oklch(27.1% 0.070 9.4);
Tailwind
colors: {
  custom: {
    50: '#79555a',
    500: '#42151f',
    950: '#000000',
  },
}
SCSS
$custom: #42151f;
$custom-light: #79555a;
$custom-dark: #000000;
JSON
{
  "hex": "#42151f",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 346.667,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27071,
    "c": 0.07029,
    "h": 9.4
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#42151F
secondary
#397A6B
accent
#DBBB4D
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #42151F

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

Preview Lab → · Contrast checker → · Palette generator →

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