#40060C#40060C

#40060C is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.3% C 0.087 H 21.4°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#40060C
RGBrgb(64, 6, 12)
HSLhsl(354, 83%, 14%)
HSVhsv(354, 91%, 25%)
CMYKcmyk(0%, 90.6%, 81.2%, 74.9%)
CIE-LABlab(10.90, 27.53, 12.07)
CIE-LCHlch(10.90, 30.06, 23.67°)
OKLaboklab(24.26% 0.0808 0.0317)
OKLCHoklch(24.26% 0.087 21.4)
XYZxyz(2.2461, 1.2471, 0.4702)
Luminance0.0125 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40060C #06403A
analogous
#400629 #40060C #401D06
triadic
#40060C #0C4006 #060C40
tetradic
#40060C #294006 #06403A #1D0640
square
#40060C #294006 #06403A #1D0640
split-complementary
#40060C #06401D #062940
monochromatic
#1C0305 #1C0305 #40060C #780B16 #B01021

Accessibility & contrast

On white

16.81
#40060C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40060C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40060C
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40060C#FFFFFF#000000##FFFFFF
##40060C1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18150C
Deuteranopia (green-blind)
#26220A
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40060c;
/* rgb */ color: rgb(64, 6, 12);
/* oklch */ color: oklch(24.3% 0.087 21.4);
Tailwind
colors: {
  custom: {
    50: '#7a4c4c',
    500: '#40060c',
    950: '#000000',
  },
}
SCSS
$custom: #40060c;
$custom-light: #7a4c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#40060c",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 12
  },
  "hsl": {
    "h": 353.793,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24262,
    "c": 0.08677,
    "h": 21.4
  },
  "luminance": 0.01247
}

Semantic roles & 50–950 ramp

primary
#40060C
secondary
#228076
accent
#F9E42F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40060C

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

Preview Lab → · Contrast checker → · Palette generator →

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