#401212#401212

#401212 is a dark, moderate red. Relative luminance 0.016; OKLCH L 25.9% C 0.072 H 23.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#401212
RGBrgb(64, 18, 18)
HSLhsl(0, 56%, 16%)
HSVhsv(0, 72%, 25%)
CMYKcmyk(0%, 71.9%, 71.9%, 74.9%)
CIE-LABlab(13.03, 22.39, 11.79)
CIE-LCHlch(13.03, 25.30, 27.76°)
OKLaboklab(25.88% 0.066 0.0288)
OKLCHoklch(25.88% 0.072 23.6)
XYZxyz(2.4401, 1.5666, 0.7460)
Luminance0.0157 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401212 #124040
analogous
#401229 #401212 #402912
triadic
#401212 #124012 #121240
tetradic
#401212 #294012 #124040 #291240
square
#401212 #294012 #124040 #291240
split-complementary
#401212 #124029 #122940
monochromatic
#180707 #180707 #401212 #701F1F #A02D2D

Accessibility & contrast

On white

15.99
#401212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#401212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401212
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401212#FFFFFF#000000##FFFFFF
##4012121.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1B12
Deuteranopia (green-blind)
#292511
Tritanopia (blue-blind)
#470812
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #401212;
/* rgb */ color: rgb(64, 18, 18);
/* oklch */ color: oklch(25.9% 0.072 23.6);
Tailwind
colors: {
  custom: {
    50: '#79524f',
    500: '#401212',
    950: '#000000',
  },
}
SCSS
$custom: #401212;
$custom-light: #79524f;
$custom-dark: #000000;
JSON
{
  "hex": "#401212",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 18
  },
  "hsl": {
    "h": 0,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25883,
    "c": 0.07196,
    "h": 23.6
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#401212
secondary
#357979
accent
#DFDF48
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #401212

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

Preview Lab → · Contrast checker → · Palette generator →

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