#400802#400802

#400802 is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.3% C 0.086 H 32.0°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#400802
RGBrgb(64, 8, 2)
HSLhsl(6, 94%, 13%)
HSVhsv(6, 97%, 25%)
CMYKcmyk(0%, 87.5%, 96.9%, 74.9%)
CIE-LABlab(11.05, 26.16, 16.40)
CIE-LCHlch(11.05, 30.87, 32.09°)
OKLaboklab(24.33% 0.0733 0.0458)
OKLCHoklch(24.33% 0.086 32)
XYZxyz(2.2124, 1.2684, 0.1858)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400802 #023A40
analogous
#40021B #400802 #402702
triadic
#400802 #024008 #080240
tetradic
#400802 #1B4002 #023A40 #270240
square
#400802 #1B4002 #023A40 #270240
split-complementary
#400802 #024027 #021B40
monochromatic
#1E0401 #1E0401 #400802 #7B0F04 #B71706

Accessibility & contrast

On white

16.75
#400802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#400802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400802
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400802#FFFFFF#000000##FFFFFF
##4008021.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1601
Deuteranopia (green-blind)
#282200
Tritanopia (blue-blind)
#480007
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400802;
/* rgb */ color: rgb(64, 8, 2);
/* oklch */ color: oklch(24.3% 0.086 32.0);
Tailwind
colors: {
  custom: {
    50: '#7a4d47',
    500: '#400802',
    950: '#000000',
  },
}
SCSS
$custom: #400802;
$custom-light: #7a4d47;
$custom-dark: #000000;
JSON
{
  "hex": "#400802",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 2
  },
  "hsl": {
    "h": 5.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24325,
    "c": 0.08642,
    "h": 32
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#400802
secondary
#1B7983
accent
#EAFF29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400802

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

Preview Lab → · Contrast checker → · Palette generator →

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