#400F1A#400F1A

#400F1A is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.7% C 0.076 H 10.9°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#400F1A
RGBrgb(64, 15, 26)
HSLhsl(347, 62%, 15%)
HSVhsv(347, 77%, 25%)
CMYKcmyk(0%, 76.6%, 59.4%, 74.9%)
CIE-LABlab(12.65, 24.65, 5.67)
CIE-LCHlch(12.65, 25.29, 12.96°)
OKLaboklab(25.67% 0.0747 0.0144)
OKLCHoklch(25.67% 0.076 10.9)
XYZxyz(2.4718, 1.5065, 1.1377)
Luminance0.0151 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F1A #0F4035
analogous
#400F32 #400F1A #401D0F
triadic
#400F1A #1A400F #0F1A40
tetradic
#400F1A #32400F #0F4035 #1D0F40
square
#400F1A #32400F #0F4035 #1D0F40
split-complementary
#400F1A #0F401D #0F3240
monochromatic
#19060A #19060A #400F1A #721B2E #A32642

Accessibility & contrast

On white

16.14
#400F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400F1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F1A
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F1A#FFFFFF#000000##FFFFFF
##400F1A1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1B1A
Deuteranopia (green-blind)
#272419
Tritanopia (blue-blind)
#470613
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400f1a;
/* rgb */ color: rgb(64, 15, 26);
/* oklch */ color: oklch(25.7% 0.076 10.9);
Tailwind
colors: {
  custom: {
    50: '#785156',
    500: '#400f1a',
    950: '#000000',
  },
}
SCSS
$custom: #400f1a;
$custom-light: #785156;
$custom-dark: #000000;
JSON
{
  "hex": "#400f1a",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 26
  },
  "hsl": {
    "h": 346.531,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25665,
    "c": 0.07605,
    "h": 10.9
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#400F1A
secondary
#307A6A
accent
#E5C143
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#090203
muted
#7B7878

Preview Lab

Preview with #400F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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