#400308#400308

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

Color values

HEX#400308
RGBrgb(64, 3, 8)
HSLhsl(355, 91%, 13%)
HSVhsv(355, 95%, 25%)
CMYKcmyk(0%, 95.3%, 87.5%, 74.9%)
CIE-LABlab(10.36, 28.69, 12.98)
CIE-LCHlch(10.36, 31.49, 24.35°)
OKLaboklab(23.84% 0.0834 0.0357)
OKLCHoklch(23.84% 0.091 23.2)
XYZxyz(2.1910, 1.1730, 0.3407)
Luminance0.0117 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400308 #03403B
analogous
#400326 #400308 #401C03
triadic
#400308 #084003 #030840
tetradic
#400308 #264003 #03403B #1C0340
square
#400308 #264003 #03403B #1C0340
split-complementary
#400308 #03401C #032640
monochromatic
#1D0104 #1D0104 #400308 #7A060F #B50817

Accessibility & contrast

On white

17.01
#400308 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400308
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400308#FFFFFF#000000##FFFFFF
##4003081.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161408
Deuteranopia (green-blind)
#262106
Tritanopia (blue-blind)
#470005
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400308;
/* rgb */ color: rgb(64, 3, 8);
/* oklch */ color: oklch(23.8% 0.091 23.2);
Tailwind
colors: {
  custom: {
    50: '#7a4b4a',
    500: '#400308',
    950: '#000000',
  },
}
SCSS
$custom: #400308;
$custom-light: #7a4b4a;
$custom-dark: #000000;
JSON
{
  "hex": "#400308",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 8
  },
  "hsl": {
    "h": 355.082,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23839,
    "c": 0.09068,
    "h": 23.2
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#400308
secondary
#1D827A
accent
#FFED29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400308

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

Preview Lab → · Contrast checker → · Palette generator →

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