#3A040F#3A040F

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

Color values

HEX#3A040F
RGBrgb(58, 4, 15)
HSLhsl(348, 87%, 12%)
HSVhsv(348, 93%, 23%)
CMYKcmyk(0%, 93.1%, 74.1%, 77.3%)
CIE-LABlab(9.17, 26.62, 7.94)
CIE-LCHlch(9.17, 27.78, 16.60°)
OKLaboklab(22.74% 0.0797 0.0218)
OKLCHoklch(22.74% 0.083 15.3)
XYZxyz(1.8748, 1.0212, 0.5502)
Luminance0.0102 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A040F #043A2F
analogous
#3A042A #3A040F #3A1404
triadic
#3A040F #0F3A04 #040F3A
tetradic
#3A040F #2A3A04 #043A2F #14043A
square
#3A040F #2A3A04 #043A2F #14043A
split-complementary
#3A040F #043A14 #042A3A
monochromatic
#1D0207 #1D0207 #3A040F #73081E #AD0C2D

Accessibility & contrast

On white

17.44
#3A040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A040F
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A040F#FFFFFF#000000##FFFFFF
##3A040F1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13120F
Deuteranopia (green-blind)
#211E0D
Tritanopia (blue-blind)
#410008
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #3a040f;
/* rgb */ color: rgb(58, 4, 15);
/* oklch */ color: oklch(22.7% 0.083 15.3);
Tailwind
colors: {
  custom: {
    50: '#754a4d',
    500: '#3a040f',
    950: '#000000',
  },
}
SCSS
$custom: #3a040f;
$custom-light: #754a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a040f",
  "rgb": {
    "r": 58,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 347.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22742,
    "c": 0.08261,
    "h": 15.3
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#3A040F
secondary
#1E7C69
accent
#FDD22B
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#090101
muted
#7B7777

Preview Lab

Preview with #3A040F

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

Preview Lab → · Contrast checker → · Palette generator →

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