#400F07#400F07

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

Color values

HEX#400F07
RGBrgb(64, 15, 7)
HSLhsl(8, 80%, 14%)
HSVhsv(8, 89%, 25%)
CMYKcmyk(0%, 76.6%, 89.1%, 74.9%)
CIE-LABlab(12.27, 23.27, 16.03)
CIE-LCHlch(12.27, 28.26, 34.57°)
OKLaboklab(25.26% 0.066 0.0414)
OKLCHoklch(25.26% 0.078 32.1)
XYZxyz(2.3238, 1.4473, 0.3580)
Luminance0.0145 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F07 #073840
analogous
#40071C #400F07 #402C07
triadic
#400F07 #07400F #0F0740
tetradic
#400F07 #1C4007 #073840 #2C0740
square
#400F07 #1C4007 #073840 #2C0740
split-complementary
#400F07 #07402C #071C40
monochromatic
#1C0603 #1C0603 #400F07 #771C0D #AE2913

Accessibility & contrast

On white

16.29
#400F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F07
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F07#FFFFFF#000000##FFFFFF
##400F071.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1906
Deuteranopia (green-blind)
#292405
Tritanopia (blue-blind)
#47020D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f07;
/* rgb */ color: rgb(64, 15, 7);
/* oklch */ color: oklch(25.3% 0.078 32.1);
Tailwind
colors: {
  custom: {
    50: '#7a5149',
    500: '#400f07',
    950: '#000000',
  },
}
SCSS
$custom: #400f07;
$custom-light: #7a5149;
$custom-dark: #000000;
JSON
{
  "hex": "#400f07",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 7
  },
  "hsl": {
    "h": 8.421,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25258,
    "c": 0.0779,
    "h": 32.1
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#400F07
secondary
#24727F
accent
#DBF731
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F07

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

Preview Lab → · Contrast checker → · Palette generator →

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