#400506#400506

#400506 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.0% C 0.089 H 26.2°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#400506
RGBrgb(64, 5, 6)
HSLhsl(359, 86%, 14%)
HSVhsv(359, 92%, 25%)
CMYKcmyk(0%, 92.2%, 90.6%, 74.9%)
CIE-LABlab(10.65, 27.68, 14.20)
CIE-LCHlch(10.65, 31.11, 27.16°)
OKLaboklab(24.04% 0.0795 0.0392)
OKLCHoklch(24.04% 0.089 26.2)
XYZxyz(2.2018, 1.2120, 0.2903)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400506 #05403F
analogous
#400523 #400506 #402105
triadic
#400506 #064005 #050640
tetradic
#400506 #234005 #05403F #210540
square
#400506 #234005 #05403F #210540
split-complementary
#400506 #054021 #052340
monochromatic
#1C0203 #1C0203 #400506 #79090B #B20E11

Accessibility & contrast

On white

16.90
#400506 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#400506 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400506
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400506#FFFFFF#000000##FFFFFF
##4005061.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181405
Deuteranopia (green-blind)
#262104
Tritanopia (blue-blind)
#480006
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400506;
/* rgb */ color: rgb(64, 5, 6);
/* oklch */ color: oklch(24.0% 0.089 26.2);
Tailwind
colors: {
  custom: {
    50: '#7a4c49',
    500: '#400506',
    950: '#000000',
  },
}
SCSS
$custom: #400506;
$custom-light: #7a4c49;
$custom-dark: #000000;
JSON
{
  "hex": "#400506",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 6
  },
  "hsl": {
    "h": 358.983,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24042,
    "c": 0.08862,
    "h": 26.2
  },
  "luminance": 0.01212
}

Semantic roles & 50–950 ramp

primary
#400506
secondary
#20817F
accent
#FCF82C
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400506

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

Preview Lab → · Contrast checker → · Palette generator →

#400506 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva