#401820#401820

#401820 is a dark, moderate red. Relative luminance 0.018; OKLCH L 27.2% C 0.063 H 9.8°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#401820
RGBrgb(64, 24, 32)
HSLhsl(348, 45%, 17%)
HSVhsv(348, 63%, 25%)
CMYKcmyk(0%, 62.5%, 50%, 74.9%)
CIE-LABlab(14.67, 20.41, 4.09)
CIE-LCHlch(14.67, 20.82, 11.32°)
OKLaboklab(27.23% 0.0619 0.0107)
OKLCHoklch(27.23% 0.063 9.8)
XYZxyz(2.7019, 1.8478, 1.5806)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401820 #184038
analogous
#401834 #401820 #402418
triadic
#401820 #204018 #182040
tetradic
#401820 #344018 #184038 #241840
square
#401820 #344018 #184038 #241840
split-complementary
#401820 #184024 #183440
monochromatic
#16080B #16080B #401820 #6D2936 #99394D

Accessibility & contrast

On white

15.33
#401820 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#401820 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401820
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401820#FFFFFF#000000##FFFFFF
##4018201.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202020
Deuteranopia (green-blind)
#2A281F
Tritanopia (blue-blind)
#46131B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #401820;
/* rgb */ color: rgb(64, 24, 32);
/* oklch */ color: oklch(27.2% 0.063 9.8);
Tailwind
colors: {
  custom: {
    50: '#77565b',
    500: '#401820',
    950: '#000000',
  },
}
SCSS
$custom: #401820;
$custom-light: #77565b;
$custom-dark: #000000;
JSON
{
  "hex": "#401820",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 32
  },
  "hsl": {
    "h": 348,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27233,
    "c": 0.06283,
    "h": 9.8
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#401820
secondary
#3D776B
accent
#D5BB53
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090304
muted
#7B7879

Preview Lab

Preview with #401820

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

Preview Lab → · Contrast checker → · Palette generator →

#401820 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva