#45171F#45171F

#45171F is a dark, moderate red. Relative luminance 0.020; OKLCH L 27.9% C 0.071 H 12.3°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#45171F
RGBrgb(69, 23, 31)
HSLhsl(350, 50%, 18%)
HSVhsv(350, 67%, 27%)
CMYKcmyk(0%, 66.7%, 55.1%, 72.9%)
CIE-LABlab(15.37, 22.95, 5.93)
CIE-LCHlch(15.37, 23.71, 14.49°)
OKLaboklab(27.94% 0.0694 0.0152)
OKLCHoklch(27.94% 0.071 12.3)
XYZxyz(3.0082, 1.9773, 1.5193)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45171F #17453D
analogous
#451736 #45171F #452617
triadic
#45171F #1F4517 #171F45
tetradic
#45171F #364517 #17453D #261745
square
#45171F #364517 #17453D #261745
split-complementary
#45171F #174526 #173645
monochromatic
#17080A #17080A #45171F #732634 #A13648

Accessibility & contrast

On white

15.05
#45171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#45171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45171F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45171F#FFFFFF#000000##FFFFFF
##45171F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21211F
Deuteranopia (green-blind)
#2D2A1E
Tritanopia (blue-blind)
#4C101A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #45171f;
/* rgb */ color: rgb(69, 23, 31);
/* oklch */ color: oklch(27.9% 0.071 12.3);
Tailwind
colors: {
  custom: {
    50: '#7c565a',
    500: '#45171f',
    950: '#000000',
  },
}
SCSS
$custom: #45171f;
$custom-light: #7c565a;
$custom-dark: #000000;
JSON
{
  "hex": "#45171f",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 349.565,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27935,
    "c": 0.07107,
    "h": 12.3
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#45171F
secondary
#3C7C71
accent
#DAC14E
background
#F7F5F5
surface
#EEE9E9
border
#C9C5C5
text
#0A0303
muted
#7C7878

Preview Lab

Preview with #45171F

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

Preview Lab → · Contrast checker → · Palette generator →

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