#3A040B#3A040B

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

Color values

HEX#3A040B
RGBrgb(58, 4, 11)
HSLhsl(352, 87%, 12%)
HSVhsv(352, 93%, 23%)
CMYKcmyk(0%, 93.1%, 81%, 77.3%)
CIE-LABlab(9.08, 26.37, 9.73)
CIE-LCHlch(9.08, 28.10, 20.26°)
OKLaboklab(22.65% 0.0778 0.0279)
OKLCHoklch(22.65% 0.083 19.7)
XYZxyz(1.8490, 1.0108, 0.4143)
Luminance0.0101 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A040B #043A33
analogous
#3A0426 #3A040B #3A1804
triadic
#3A040B #0B3A04 #040B3A
tetradic
#3A040B #263A04 #043A33 #18043A
square
#3A040B #263A04 #043A33 #18043A
split-complementary
#3A040B #043A18 #04263A
monochromatic
#1D0205 #1D0205 #3A040B #730816 #AD0C21

Accessibility & contrast

On white

17.47
#3A040B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A040B
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A040B#FFFFFF#000000##FFFFFF
##3A040B1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a040b;
/* rgb */ color: rgb(58, 4, 11);
/* oklch */ color: oklch(22.7% 0.083 19.7);
Tailwind
colors: {
  custom: {
    50: '#754a4b',
    500: '#3a040b',
    950: '#000000',
  },
}
SCSS
$custom: #3a040b;
$custom-light: #754a4b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a040b",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 11
  },
  "hsl": {
    "h": 352.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22652,
    "c": 0.08261,
    "h": 19.7
  },
  "luminance": 0.01011
}

Semantic roles & 50–950 ramp

primary
#3A040B
secondary
#1E7C70
accent
#FDE22B
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#090101
muted
#7B7777

Preview Lab

Preview with #3A040B

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

Preview Lab → · Contrast checker → · Palette generator →

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