#400507#400507

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

Color values

HEX#400507
RGBrgb(64, 5, 7)
HSLhsl(358, 86%, 14%)
HSVhsv(358, 92%, 25%)
CMYKcmyk(0%, 92.2%, 89.1%, 74.9%)
CIE-LABlab(10.66, 27.73, 13.82)
CIE-LCHlch(10.66, 30.98, 26.49°)
OKLaboklab(24.06% 0.08 0.0378)
OKLCHoklch(24.06% 0.088 25.3)
XYZxyz(2.2072, 1.2142, 0.3191)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400507 #05403E
analogous
#400524 #400507 #402005
triadic
#400507 #074005 #050740
tetradic
#400507 #244005 #05403E #200540
square
#400507 #244005 #05403E #200540
split-complementary
#400507 #054020 #052440
monochromatic
#1C0203 #1C0203 #400507 #79090D #B20E13

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400507#FFFFFF#000000##FFFFFF
##4005071.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)
#181506
Deuteranopia (green-blind)
#262105
Tritanopia (blue-blind)
#470006
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400507;
/* rgb */ color: rgb(64, 5, 7);
/* oklch */ color: oklch(24.1% 0.088 25.3);
Tailwind
colors: {
  custom: {
    50: '#7a4c49',
    500: '#400507',
    950: '#000000',
  },
}
SCSS
$custom: #400507;
$custom-light: #7a4c49;
$custom-dark: #000000;
JSON
{
  "hex": "#400507",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 7
  },
  "hsl": {
    "h": 357.966,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24059,
    "c": 0.08846,
    "h": 25.3
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#400507
secondary
#20817D
accent
#FCF52C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400507

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

Preview Lab → · Contrast checker → · Palette generator →

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