#3A040D#3A040D

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

Color values

HEX#3A040D
RGBrgb(58, 4, 13)
HSLhsl(350, 87%, 12%)
HSVhsv(350, 93%, 23%)
CMYKcmyk(0%, 93.1%, 77.6%, 77.3%)
CIE-LABlab(9.12, 26.49, 8.88)
CIE-LCHlch(9.12, 27.93, 18.53°)
OKLaboklab(22.7% 0.0787 0.0249)
OKLCHoklch(22.7% 0.083 17.6)
XYZxyz(1.8612, 1.0157, 0.4787)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A040D #043A31
analogous
#3A0428 #3A040D #3A1604
triadic
#3A040D #0D3A04 #040D3A
tetradic
#3A040D #283A04 #043A31 #16043A
square
#3A040D #283A04 #043A31 #16043A
split-complementary
#3A040D #043A16 #04283A
monochromatic
#1D0206 #1D0206 #3A040D #73081A #AD0C27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A040D#FFFFFF#000000##FFFFFF
##3A040D1.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)
#14120D
Deuteranopia (green-blind)
#221E0B
Tritanopia (blue-blind)
#410007
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #3a040d;
/* rgb */ color: rgb(58, 4, 13);
/* oklch */ color: oklch(22.7% 0.083 17.6);
Tailwind
colors: {
  custom: {
    50: '#754a4c',
    500: '#3a040d',
    950: '#000000',
  },
}
SCSS
$custom: #3a040d;
$custom-light: #754a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a040d",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 13
  },
  "hsl": {
    "h": 350,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22695,
    "c": 0.08256,
    "h": 17.6
  },
  "luminance": 0.01015
}

Semantic roles & 50–950 ramp

primary
#3A040D
secondary
#1E7C6C
accent
#FDDA2B
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#090101
muted
#7B7777

Preview Lab

Preview with #3A040D

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

Preview Lab → · Contrast checker → · Palette generator →

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