#401312#401312

#401312 is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.0% C 0.071 H 24.6°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#401312
RGBrgb(64, 19, 18)
HSLhsl(1, 56%, 16%)
HSVhsv(1, 72%, 25%)
CMYKcmyk(0%, 70.3%, 71.9%, 74.9%)
CIE-LABlab(13.23, 21.85, 12.06)
CIE-LCHlch(13.23, 24.95, 28.89°)
OKLaboklab(26.04% 0.0642 0.0294)
OKLCHoklch(26.04% 0.071 24.6)
XYZxyz(2.4566, 1.5997, 0.7516)
Luminance0.0160 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401312 #123F40
analogous
#401228 #401312 #402A12
triadic
#401312 #124013 #131240
tetradic
#401312 #284012 #123F40 #2A1240
square
#401312 #284012 #123F40 #2A1240
split-complementary
#401312 #12402A #122840
monochromatic
#180707 #180707 #401312 #70211F #A02F2D

Accessibility & contrast

On white

15.91
#401312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#401312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401312
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401312#FFFFFF#000000##FFFFFF
##4013121.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1C12
Deuteranopia (green-blind)
#2A2611
Tritanopia (blue-blind)
#470A13
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401312;
/* rgb */ color: rgb(64, 19, 18);
/* oklch */ color: oklch(26.0% 0.071 24.6);
Tailwind
colors: {
  custom: {
    50: '#79534f',
    500: '#401312',
    950: '#000000',
  },
}
SCSS
$custom: #401312;
$custom-light: #79534f;
$custom-dark: #000000;
JSON
{
  "hex": "#401312",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 18
  },
  "hsl": {
    "h": 1.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26036,
    "c": 0.07064,
    "h": 24.6
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#401312
secondary
#357879
accent
#DCDF48
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #401312

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

Preview Lab → · Contrast checker → · Palette generator →

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