#40130C#40130C

#40130C is a dark, moderate red. Relative luminance 0.016; OKLCH L 25.9% C 0.072 H 31.3°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#40130C
RGBrgb(64, 19, 12)
HSLhsl(8, 68%, 15%)
HSVhsv(8, 81%, 25%)
CMYKcmyk(0%, 70.3%, 81.2%, 74.9%)
CIE-LABlab(13.12, 21.43, 15.10)
CIE-LCHlch(13.12, 26.22, 35.17°)
OKLaboklab(25.92% 0.0615 0.0374)
OKLCHoklch(25.92% 0.072 31.3)
XYZxyz(2.4138, 1.5826, 0.5261)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40130C #0C3940
analogous
#400C1F #40130C #402D0C
triadic
#40130C #0C4013 #130C40
tetradic
#40130C #1F400C #0C3940 #2D0C40
square
#40130C #1F400C #0C3940 #2D0C40
split-complementary
#40130C #0C402D #0C1F40
monochromatic
#1A0805 #1A0805 #40130C #742216 #A7321F

Accessibility & contrast

On white

15.95
#40130C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40130C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40130C
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40130C#FFFFFF#000000##FFFFFF
##40130C1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1C0B
Deuteranopia (green-blind)
#2A250B
Tritanopia (blue-blind)
#470912
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40130c;
/* rgb */ color: rgb(64, 19, 12);
/* oklch */ color: oklch(25.9% 0.072 31.3);
Tailwind
colors: {
  custom: {
    50: '#79534c',
    500: '#40130c',
    950: '#000000',
  },
}
SCSS
$custom: #40130c;
$custom-light: #79534c;
$custom-dark: #000000;
JSON
{
  "hex": "#40130c",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 12
  },
  "hsl": {
    "h": 8.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25924,
    "c": 0.07198,
    "h": 31.3
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#40130C
secondary
#2C717C
accent
#D4EB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40130C

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

Preview Lab → · Contrast checker → · Palette generator →

#40130C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva