#40060B#40060B

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

Color values

HEX#40060B
RGBrgb(64, 6, 11)
HSLhsl(355, 83%, 14%)
HSVhsv(355, 91%, 25%)
CMYKcmyk(0%, 90.6%, 82.8%, 74.9%)
CIE-LABlab(10.88, 27.48, 12.49)
CIE-LCHlch(10.88, 30.18, 24.44°)
OKLaboklab(24.24% 0.0803 0.033)
OKLCHoklch(24.24% 0.087 22.3)
XYZxyz(2.2401, 1.2448, 0.4389)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40060B #06403B
analogous
#400628 #40060B #401E06
triadic
#40060B #0B4006 #060B40
tetradic
#40060B #284006 #06403B #1E0640
square
#40060B #284006 #06403B #1E0640
split-complementary
#40060B #06401E #062840
monochromatic
#1C0305 #1C0305 #40060B #780B15 #B0101E

Accessibility & contrast

On white

16.82
#40060B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40060B
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40060B#FFFFFF#000000##FFFFFF
##40060B1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18150B
Deuteranopia (green-blind)
#262209
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40060b;
/* rgb */ color: rgb(64, 6, 11);
/* oklch */ color: oklch(24.2% 0.087 22.3);
Tailwind
colors: {
  custom: {
    50: '#7a4c4b',
    500: '#40060b',
    950: '#000000',
  },
}
SCSS
$custom: #40060b;
$custom-light: #7a4c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#40060b",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 11
  },
  "hsl": {
    "h": 354.828,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24244,
    "c": 0.08685,
    "h": 22.3
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#40060B
secondary
#228078
accent
#F9E82F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40060B

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

Preview Lab → · Contrast checker → · Palette generator →

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