#40120B#40120B

#40120B is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.8% C 0.073 H 31.2°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#40120B
RGBrgb(64, 18, 11)
HSLhsl(8, 71%, 15%)
HSVhsv(8, 83%, 25%)
CMYKcmyk(0%, 71.9%, 82.8%, 74.9%)
CIE-LABlab(12.90, 21.92, 15.25)
CIE-LCHlch(12.90, 26.71, 34.83°)
OKLaboklab(25.75% 0.0628 0.038)
OKLCHoklch(25.75% 0.073 31.2)
XYZxyz(2.3913, 1.5471, 0.4892)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40120B #0B3940
analogous
#400B1E #40120B #402D0B
triadic
#40120B #0B4012 #120B40
tetradic
#40120B #1E400B #0B3940 #2D0B40
square
#40120B #1E400B #0B3940 #2D0B40
split-complementary
#40120B #0B402D #0B1E40
monochromatic
#1A0704 #1A0704 #40120B #742114 #A82F1D

Accessibility & contrast

On white

16.04
#40120B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40120B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40120B
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40120B#FFFFFF#000000##FFFFFF
##40120B1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1B0A
Deuteranopia (green-blind)
#2A250A
Tritanopia (blue-blind)
#470711
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40120b;
/* rgb */ color: rgb(64, 18, 11);
/* oklch */ color: oklch(25.8% 0.073 31.2);
Tailwind
colors: {
  custom: {
    50: '#79524b',
    500: '#40120b',
    950: '#000000',
  },
}
SCSS
$custom: #40120b;
$custom-light: #79524b;
$custom-dark: #000000;
JSON
{
  "hex": "#40120b",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 11
  },
  "hsl": {
    "h": 7.925,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25754,
    "c": 0.07343,
    "h": 31.2
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#40120B
secondary
#2A727D
accent
#D6ED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40120B

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

Preview Lab → · Contrast checker → · Palette generator →

#40120B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva