#400C02#400C02

#400C02 is a very dark, moderate red. Relative luminance 0.014; OKLCH L 24.8% C 0.083 H 34.6°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#400C02
RGBrgb(64, 12, 2)
HSLhsl(10, 94%, 13%)
HSVhsv(10, 97%, 25%)
CMYKcmyk(0%, 81.2%, 96.9%, 74.9%)
CIE-LABlab(11.67, 24.44, 17.26)
CIE-LCHlch(11.67, 29.91, 35.23°)
OKLaboklab(24.79% 0.068 0.047)
OKLCHoklch(24.79% 0.083 34.6)
XYZxyz(2.2571, 1.3577, 0.2006)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C02 #023640
analogous
#400217 #400C02 #402B02
triadic
#400C02 #02400C #0C0240
tetradic
#400C02 #174002 #023640 #2B0240
square
#400C02 #174002 #023640 #2B0240
split-complementary
#400C02 #02402B #021740
monochromatic
#1E0601 #1E0601 #400C02 #7B1704 #B72206

Accessibility & contrast

On white

16.52
#400C02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400C02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C02
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C02#FFFFFF#000000##FFFFFF
##400C021.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1701
Deuteranopia (green-blind)
#292300
Tritanopia (blue-blind)
#48000A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c02;
/* rgb */ color: rgb(64, 12, 2);
/* oklch */ color: oklch(24.8% 0.083 34.6);
Tailwind
colors: {
  custom: {
    50: '#7a4f47',
    500: '#400c02',
    950: '#000000',
  },
}
SCSS
$custom: #400c02;
$custom-light: #7a4f47;
$custom-dark: #000000;
JSON
{
  "hex": "#400c02",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 2
  },
  "hsl": {
    "h": 9.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24788,
    "c": 0.0826,
    "h": 34.6
  },
  "luminance": 0.01357
}

Semantic roles & 50–950 ramp

primary
#400C02
secondary
#1B7283
accent
#DCFF29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400C02

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

Preview Lab → · Contrast checker → · Palette generator →

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