#400F08#400F08

#400F08 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.3% C 0.078 H 31.2°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#400F08
RGBrgb(64, 15, 8)
HSLhsl(8, 78%, 14%)
HSVhsv(8, 88%, 25%)
CMYKcmyk(0%, 76.6%, 87.5%, 74.9%)
CIE-LABlab(12.28, 23.32, 15.65)
CIE-LCHlch(12.28, 28.08, 33.86°)
OKLaboklab(25.27% 0.0664 0.0402)
OKLCHoklch(25.27% 0.078 31.2)
XYZxyz(2.3293, 1.4495, 0.3868)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F08 #083940
analogous
#40081D #400F08 #402B08
triadic
#400F08 #08400F #0F0840
tetradic
#400F08 #1D4008 #083940 #2B0840
square
#400F08 #1D4008 #083940 #2B0840
split-complementary
#400F08 #08402B #081D40
monochromatic
#1B0603 #1B0603 #400F08 #761C0F #AD2916

Accessibility & contrast

On white

16.28
#400F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400F08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F08
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F08#FFFFFF#000000##FFFFFF
##400F081.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1907
Deuteranopia (green-blind)
#292406
Tritanopia (blue-blind)
#47030E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f08;
/* rgb */ color: rgb(64, 15, 8);
/* oklch */ color: oklch(25.3% 0.078 31.2);
Tailwind
colors: {
  custom: {
    50: '#7a514a',
    500: '#400f08',
    950: '#000000',
  },
}
SCSS
$custom: #400f08;
$custom-light: #7a514a;
$custom-dark: #000000;
JSON
{
  "hex": "#400f08",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 8
  },
  "hsl": {
    "h": 7.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.25273,
    "c": 0.07763,
    "h": 31.2
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#400F08
secondary
#25737E
accent
#DCF434
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F08

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

Preview Lab → · Contrast checker → · Palette generator →

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