#400902#400902

#400902 is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.4% C 0.085 H 32.6°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#400902
RGBrgb(64, 9, 2)
HSLhsl(7, 94%, 13%)
HSVhsv(7, 97%, 25%)
CMYKcmyk(0%, 85.9%, 96.9%, 74.9%)
CIE-LABlab(11.21, 25.73, 16.61)
CIE-LCHlch(11.21, 30.63, 32.85°)
OKLaboklab(24.44% 0.072 0.0461)
OKLCHoklch(24.44% 0.085 32.6)
XYZxyz(2.2233, 1.2901, 0.1894)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400902 #023940
analogous
#40021A #400902 #402802
triadic
#400902 #024009 #090240
tetradic
#400902 #1A4002 #023940 #280240
square
#400902 #1A4002 #023940 #280240
split-complementary
#400902 #024028 #021A40
monochromatic
#1E0401 #1E0401 #400902 #7B1104 #B71A06

Accessibility & contrast

On white

16.69
#400902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400902
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400902#FFFFFF#000000##FFFFFF
##4009021.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400902;
/* rgb */ color: rgb(64, 9, 2);
/* oklch */ color: oklch(24.4% 0.085 32.6);
Tailwind
colors: {
  custom: {
    50: '#7a4e47',
    500: '#400902',
    950: '#000000',
  },
}
SCSS
$custom: #400902;
$custom-light: #7a4e47;
$custom-dark: #000000;
JSON
{
  "hex": "#400902",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 2
  },
  "hsl": {
    "h": 6.774,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24439,
    "c": 0.08545,
    "h": 32.6
  },
  "luminance": 0.0129
}

Semantic roles & 50–950 ramp

primary
#400902
secondary
#1B7783
accent
#E7FF29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400902

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

Preview Lab → · Contrast checker → · Palette generator →

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