#402018#402018

#402018 is a dark, muted red. Relative luminance 0.022; OKLCH L 28.5% C 0.052 H 35.0°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#402018
RGBrgb(64, 32, 24)
HSLhsl(12, 45%, 17%)
HSVhsv(12, 63%, 25%)
CMYKcmyk(0%, 50%, 62.5%, 74.9%)
CIE-LABlab(16.45, 14.47, 12.20)
CIE-LCHlch(16.45, 18.93, 40.14°)
OKLaboklab(28.52% 0.0425 0.0297)
OKLCHoklch(28.52% 0.052 35)
XYZxyz(2.7959, 2.1892, 1.1393)
Luminance0.0219 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402018 #183840
analogous
#401824 #402018 #403418
triadic
#402018 #184020 #201840
tetradic
#402018 #244018 #183840 #341840
square
#402018 #244018 #183840 #341840
split-complementary
#402018 #184034 #182440
monochromatic
#160B08 #160B08 #402018 #6D3629 #994D39

Accessibility & contrast

On white

14.61
#402018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#402018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402018
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402018#FFFFFF#000000##FFFFFF
##4020181.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282517
Deuteranopia (green-blind)
#302B18
Tritanopia (blue-blind)
#461B1E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #402018;
/* rgb */ color: rgb(64, 32, 24);
/* oklch */ color: oklch(28.5% 0.052 35.0);
Tailwind
colors: {
  custom: {
    50: '#775c54',
    500: '#402018',
    950: '#000000',
  },
}
SCSS
$custom: #402018;
$custom-light: #775c54;
$custom-dark: #000000;
JSON
{
  "hex": "#402018",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 24
  },
  "hsl": {
    "h": 12,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28521,
    "c": 0.05186,
    "h": 35
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#402018
secondary
#3D6B77
accent
#BBD553
background
#F7F5F4
surface
#EDE9E7
border
#C8C5C3
text
#090402
muted
#7B7978

Preview Lab

Preview with #402018

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

Preview Lab → · Contrast checker → · Palette generator →

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