#400503#400503

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

Color values

HEX#400503
RGBrgb(64, 5, 3)
HSLhsl(2, 91%, 13%)
HSVhsv(2, 95%, 25%)
CMYKcmyk(0%, 92.2%, 95.3%, 74.9%)
CIE-LABlab(10.60, 27.53, 15.36)
CIE-LCHlch(10.60, 31.52, 29.16°)
OKLaboklab(23.99% 0.0779 0.0435)
OKLCHoklch(23.99% 0.089 29.1)
XYZxyz(2.1853, 1.2055, 0.2037)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400503 #033E40
analogous
#40031F #400503 #402303
triadic
#400503 #034005 #050340
tetradic
#400503 #1F4003 #033E40 #230340
square
#400503 #1F4003 #033E40 #230340
split-complementary
#400503 #034023 #031F40
monochromatic
#1D0201 #1D0201 #400503 #7A0A06 #B50E08

Accessibility & contrast

On white

16.92
#400503 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400503
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400503#FFFFFF#000000##FFFFFF
##4005031.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181402
Deuteranopia (green-blind)
#272101
Tritanopia (blue-blind)
#480005
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400503;
/* rgb */ color: rgb(64, 5, 3);
/* oklch */ color: oklch(24.0% 0.089 29.1);
Tailwind
colors: {
  custom: {
    50: '#7a4c48',
    500: '#400503',
    950: '#000000',
  },
}
SCSS
$custom: #400503;
$custom-light: #7a4c48;
$custom-dark: #000000;
JSON
{
  "hex": "#400503",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 3
  },
  "hsl": {
    "h": 1.967,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23991,
    "c": 0.08923,
    "h": 29.1
  },
  "luminance": 0.01205
}

Semantic roles & 50–950 ramp

primary
#400503
secondary
#1D7F82
accent
#F8FF29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400503

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

Preview Lab → · Contrast checker → · Palette generator →

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