#400C18#400C18

#400C18 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.2% C 0.080 H 11.6°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#400C18
RGBrgb(64, 12, 24)
HSLhsl(346, 68%, 15%)
HSVhsv(346, 81%, 25%)
CMYKcmyk(0%, 81.2%, 62.5%, 74.9%)
CIE-LABlab(12.08, 25.85, 6.39)
CIE-LCHlch(12.08, 26.63, 13.87°)
OKLaboklab(25.23% 0.0782 0.0161)
OKLCHoklch(25.23% 0.08 11.6)
XYZxyz(2.4109, 1.4192, 1.0110)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C18 #0C4034
analogous
#400C32 #400C18 #401A0C
triadic
#400C18 #18400C #0C1840
tetradic
#400C18 #32400C #0C4034 #1A0C40
square
#400C18 #32400C #0C4034 #1A0C40
split-complementary
#400C18 #0C401A #0C3240
monochromatic
#1A050A #1A050A #400C18 #74162B #A71F3F

Accessibility & contrast

On white

16.36
#400C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C18
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C18#FFFFFF#000000##FFFFFF
##400C181.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191918
Deuteranopia (green-blind)
#272417
Tritanopia (blue-blind)
#470211
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c18;
/* rgb */ color: rgb(64, 12, 24);
/* oklch */ color: oklch(25.2% 0.080 11.6);
Tailwind
colors: {
  custom: {
    50: '#794f54',
    500: '#400c18',
    950: '#000000',
  },
}
SCSS
$custom: #400c18;
$custom-light: #794f54;
$custom-dark: #000000;
JSON
{
  "hex": "#400c18",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 24
  },
  "hsl": {
    "h": 346.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25228,
    "c": 0.07985,
    "h": 11.6
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#400C18
secondary
#2C7C6A
accent
#EBC33D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400C18

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

Preview Lab → · Contrast checker → · Palette generator →

#400C18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva