#400311#400311

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

Color values

HEX#400311
RGBrgb(64, 3, 17)
HSLhsl(346, 91%, 13%)
HSVhsv(346, 95%, 25%)
CMYKcmyk(0%, 95.3%, 73.4%, 74.9%)
CIE-LABlab(10.53, 29.19, 8.96)
CIE-LCHlch(10.53, 30.53, 17.06°)
OKLaboklab(24.02% 0.0875 0.0231)
OKLCHoklch(24.02% 0.09 14.8)
XYZxyz(2.2483, 1.1959, 0.6427)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400311 #034032
analogous
#40032F #400311 #401403
triadic
#400311 #114003 #031140
tetradic
#400311 #2F4003 #034032 #140340
square
#400311 #2F4003 #034032 #140340
split-complementary
#400311 #034014 #032F40
monochromatic
#1D0108 #1D0108 #400311 #7A0621 #B50830

Accessibility & contrast

On white

16.95
#400311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400311
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400311#FFFFFF#000000##FFFFFF
##4003111.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151411
Deuteranopia (green-blind)
#25210F
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400311;
/* rgb */ color: rgb(64, 3, 17);
/* oklch */ color: oklch(24.0% 0.090 14.8);
Tailwind
colors: {
  custom: {
    50: '#7a4b4f',
    500: '#400311',
    950: '#000000',
  },
}
SCSS
$custom: #400311;
$custom-light: #7a4b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400311",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 17
  },
  "hsl": {
    "h": 346.23,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24019,
    "c": 0.09044,
    "h": 14.8
  },
  "luminance": 0.01196
}

Semantic roles & 50–950 ramp

primary
#400311
secondary
#1D826B
accent
#FFCE29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400311

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

Preview Lab → · Contrast checker → · Palette generator →

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