#400F0F#400F0F

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

Color values

HEX#400F0F
RGBrgb(64, 15, 15)
HSLhsl(0, 62%, 15%)
HSVhsv(0, 77%, 25%)
CMYKcmyk(0%, 76.6%, 76.6%, 74.9%)
CIE-LABlab(12.39, 23.72, 12.64)
CIE-LCHlch(12.39, 26.88, 28.06°)
OKLaboklab(25.39% 0.0695 0.0314)
OKLCHoklch(25.39% 0.076 24.3)
XYZxyz(2.3716, 1.4665, 0.6100)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F0F #0F4040
analogous
#400F27 #400F0F #40270F
triadic
#400F0F #0F400F #0F0F40
tetradic
#400F0F #27400F #0F4040 #270F40
square
#400F0F #27400F #0F4040 #270F40
split-complementary
#400F0F #0F4027 #0F2740
monochromatic
#190606 #190606 #400F0F #721B1B #A32626

Accessibility & contrast

On white

16.24
#400F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F0F
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F0F#FFFFFF#000000##FFFFFF
##400F0F1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1A0F
Deuteranopia (green-blind)
#29240E
Tritanopia (blue-blind)
#470410
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f0f;
/* rgb */ color: rgb(64, 15, 15);
/* oklch */ color: oklch(25.4% 0.076 24.3);
Tailwind
colors: {
  custom: {
    50: '#79514d',
    500: '#400f0f',
    950: '#000000',
  },
}
SCSS
$custom: #400f0f;
$custom-light: #79514d;
$custom-dark: #000000;
JSON
{
  "hex": "#400f0f",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 15
  },
  "hsl": {
    "h": 0,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.07623,
    "h": 24.3
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#400F0F
secondary
#307A7A
accent
#E5E543
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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