#400F0B#400F0B

#400F0B is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.3% C 0.077 H 28.4°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#400F0B
RGBrgb(64, 15, 11)
HSLhsl(5, 71%, 15%)
HSVhsv(5, 83%, 25%)
CMYKcmyk(0%, 76.6%, 82.8%, 74.9%)
CIE-LABlab(12.33, 23.48, 14.47)
CIE-LCHlch(12.33, 27.58, 31.65°)
OKLaboklab(25.32% 0.0677 0.0366)
OKLCHoklch(25.32% 0.077 28.4)
XYZxyz(2.3458, 1.4561, 0.4741)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F0B #0B3C40
analogous
#400B22 #400F0B #402A0B
triadic
#400F0B #0B400F #0F0B40
tetradic
#400F0B #22400B #0B3C40 #2A0B40
square
#400F0B #22400B #0B3C40 #2A0B40
split-complementary
#400F0B #0B402A #0B2240
monochromatic
#1A0604 #1A0604 #400F0B #741B14 #A8271D

Accessibility & contrast

On white

16.26
#400F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F0B
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F0B#FFFFFF#000000##FFFFFF
##400F0B1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f0b;
/* rgb */ color: rgb(64, 15, 11);
/* oklch */ color: oklch(25.3% 0.077 28.4);
Tailwind
colors: {
  custom: {
    50: '#7a514b',
    500: '#400f0b',
    950: '#000000',
  },
}
SCSS
$custom: #400f0b;
$custom-light: #7a514b;
$custom-dark: #000000;
JSON
{
  "hex": "#400f0b",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 11
  },
  "hsl": {
    "h": 4.528,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25319,
    "c": 0.07695,
    "h": 28.4
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#400F0B
secondary
#2A767D
accent
#E0ED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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