#3A040C#3A040C

#3A040C is a very dark, moderate red. Relative luminance 0.010; OKLCH L 22.7% C 0.083 H 18.7°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#3A040C
RGBrgb(58, 4, 12)
HSLhsl(351, 87%, 12%)
HSVhsv(351, 93%, 23%)
CMYKcmyk(0%, 93.1%, 79.3%, 77.3%)
CIE-LABlab(9.10, 26.42, 9.32)
CIE-LCHlch(9.10, 28.02, 19.42°)
OKLaboklab(22.67% 0.0782 0.0264)
OKLCHoklch(22.67% 0.083 18.7)
XYZxyz(1.8549, 1.0132, 0.4457)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A040C #043A32
analogous
#3A0427 #3A040C #3A1704
triadic
#3A040C #0C3A04 #040C3A
tetradic
#3A040C #273A04 #043A32 #17043A
square
#3A040C #273A04 #043A32 #17043A
split-complementary
#3A040C #043A17 #04273A
monochromatic
#1D0206 #1D0206 #3A040C #730818 #AD0C24

Accessibility & contrast

On white

17.46
#3A040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#3A040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A040C
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A040C#FFFFFF#000000##FFFFFF
##3A040C1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14120C
Deuteranopia (green-blind)
#221E0A
Tritanopia (blue-blind)
#410007
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #3a040c;
/* rgb */ color: rgb(58, 4, 12);
/* oklch */ color: oklch(22.7% 0.083 18.7);
Tailwind
colors: {
  custom: {
    50: '#754a4c',
    500: '#3a040c',
    950: '#000000',
  },
}
SCSS
$custom: #3a040c;
$custom-light: #754a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a040c",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 351.111,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22673,
    "c": 0.08258,
    "h": 18.7
  },
  "luminance": 0.01013
}

Semantic roles & 50–950 ramp

primary
#3A040C
secondary
#1E7C6E
accent
#FDDE2B
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#090101
muted
#7B7777

Preview Lab

Preview with #3A040C

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

Preview Lab → · Contrast checker → · Palette generator →

#3A040C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva