#2A040C#2A040C

#2A040C is a very dark, moderate red. Relative luminance 0.006; OKLCH L 19.0% C 0.064 H 12.1°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#2A040C
RGBrgb(42, 4, 12)
HSLhsl(347, 83%, 9%)
HSVhsv(347, 90%, 16%)
CMYKcmyk(0%, 90.5%, 71.4%, 83.5%)
CIE-LABlab(5.47, 19.32, 3.59)
CIE-LCHlch(5.47, 19.65, 10.53°)
OKLaboklab(19.05% 0.0626 0.0134)
OKLCHoklch(19.05% 0.064 12.1)
XYZxyz(1.0647, 0.6058, 0.4086)
Luminance0.0061 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A040C #042A22
analogous
#2A041F #2A040C #2A0F04
triadic
#2A040C #0C2A04 #040C2A
tetradic
#2A040C #1F2A04 #042A22 #0F042A
square
#2A040C #1F2A04 #042A22 #0F042A
split-complementary
#2A040C #042A0F #041F2A
monochromatic
#1C0308 #1C0308 #2A040C #62091C #9A0F2C

Accessibility & contrast

On white

18.73
#2A040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#2A040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A040C
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A040C#FFFFFF#000000##FFFFFF
##2A040C1.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D0D0C
Deuteranopia (green-blind)
#17150B
Tritanopia (blue-blind)
#2F0007
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #2a040c;
/* rgb */ color: rgb(42, 4, 12);
/* oklch */ color: oklch(19.0% 0.064 12.1);
Tailwind
colors: {
  custom: {
    50: '#66484c',
    500: '#2a040c',
    950: '#000000',
  },
}
SCSS
$custom: #2a040c;
$custom-light: #66484c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a040c",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 347.368,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.19046,
    "c": 0.06404,
    "h": 12.1
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#2A040C
secondary
#1D6D5C
accent
#F9CE2F
background
#F6F4F4
surface
#EBE6E7
border
#C6C2C3
text
#060001
muted
#7A7777

Preview Lab

Preview with #2A040C

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

Preview Lab → · Contrast checker → · Palette generator →

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