#400304#400304

#400304 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 23.8% C 0.091 H 26.9°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#400304
RGBrgb(64, 3, 4)
HSLhsl(359, 91%, 13%)
HSVhsv(359, 95%, 25%)
CMYKcmyk(0%, 95.3%, 93.8%, 74.9%)
CIE-LABlab(10.29, 28.50, 14.52)
CIE-LCHlch(10.29, 31.99, 26.99°)
OKLaboklab(23.77% 0.0814 0.0413)
OKLCHoklch(23.77% 0.091 26.9)
XYZxyz(2.1691, 1.1642, 0.2254)
Luminance0.0116 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400304 #03403F
analogous
#400322 #400304 #402003
triadic
#400304 #044003 #030440
tetradic
#400304 #224003 #03403F #200340
square
#400304 #224003 #03403F #200340
split-complementary
#400304 #034020 #032240
monochromatic
#1D0102 #1D0102 #400304 #7A0608 #B5080B

Accessibility & contrast

On white

17.03
#400304 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#400304 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400304
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400304#FFFFFF#000000##FFFFFF
##4003041.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171303
Deuteranopia (green-blind)
#262102
Tritanopia (blue-blind)
#480004
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400304;
/* rgb */ color: rgb(64, 3, 4);
/* oklch */ color: oklch(23.8% 0.091 26.9);
Tailwind
colors: {
  custom: {
    50: '#7b4b48',
    500: '#400304',
    950: '#000000',
  },
}
SCSS
$custom: #400304;
$custom-light: #7b4b48;
$custom-dark: #000000;
JSON
{
  "hex": "#400304",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 4
  },
  "hsl": {
    "h": 359.016,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23769,
    "c": 0.09126,
    "h": 26.9
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#400304
secondary
#1D8280
accent
#FFFB29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400304

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

Preview Lab → · Contrast checker → · Palette generator →

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