#40060F#40060F

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

Color values

HEX#40060F
RGBrgb(64, 6, 15)
HSLhsl(351, 83%, 14%)
HSVhsv(351, 91%, 25%)
CMYKcmyk(0%, 90.6%, 76.6%, 74.9%)
CIE-LABlab(10.96, 27.71, 10.67)
CIE-LCHlch(10.96, 29.69, 21.06°)
OKLaboklab(24.32% 0.0822 0.0275)
OKLCHoklch(24.32% 0.087 18.5)
XYZxyz(2.2660, 1.2551, 0.5748)
Luminance0.0126 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40060F #064037
analogous
#40062C #40060F #401A06
triadic
#40060F #0F4006 #060F40
tetradic
#40060F #2C4006 #064037 #1A0640
square
#40060F #2C4006 #064037 #1A0640
split-complementary
#40060F #06401A #062C40
monochromatic
#1C0307 #1C0307 #40060F #780B1C #B01029

Accessibility & contrast

On white

16.79
#40060F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40060F
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40060F#FFFFFF#000000##FFFFFF
##40060F1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17160F
Deuteranopia (green-blind)
#26220D
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40060f;
/* rgb */ color: rgb(64, 6, 15);
/* oklch */ color: oklch(24.3% 0.087 18.5);
Tailwind
colors: {
  custom: {
    50: '#7a4c4d',
    500: '#40060f',
    950: '#000000',
  },
}
SCSS
$custom: #40060f;
$custom-light: #7a4c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40060f",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 15
  },
  "hsl": {
    "h": 350.69,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24323,
    "c": 0.08662,
    "h": 18.5
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#40060F
secondary
#228071
accent
#F9DA2F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40060F

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

Preview Lab → · Contrast checker → · Palette generator →

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