#40150F#40150F

#40150F is a dark, moderate red. Relative luminance 0.017; OKLCH L 26.3% C 0.069 H 30.3°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#40150F
RGBrgb(64, 21, 15)
HSLhsl(7, 62%, 15%)
HSVhsv(7, 77%, 25%)
CMYKcmyk(0%, 67.2%, 76.6%, 74.9%)
CIE-LABlab(13.60, 20.50, 14.25)
CIE-LCHlch(13.60, 24.97, 34.81°)
OKLaboklab(26.3% 0.0593 0.0347)
OKLCHoklch(26.3% 0.069 30.3)
XYZxyz(2.4690, 1.6611, 0.6425)
Luminance0.0166 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40150F #0F3A40
analogous
#400F21 #40150F #402D0F
triadic
#40150F #0F4015 #150F40
tetradic
#40150F #21400F #0F3A40 #2D0F40
square
#40150F #21400F #0F3A40 #2D0F40
split-complementary
#40150F #0F402D #0F2140
monochromatic
#190806 #190806 #40150F #72251B #A33626

Accessibility & contrast

On white

15.76
#40150F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40150F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40150F
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40150F#FFFFFF#000000##FFFFFF
##40150F1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201D0E
Deuteranopia (green-blind)
#2B260E
Tritanopia (blue-blind)
#470C14
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40150f;
/* rgb */ color: rgb(64, 21, 15);
/* oklch */ color: oklch(26.3% 0.069 30.3);
Tailwind
colors: {
  custom: {
    50: '#79544e',
    500: '#40150f',
    950: '#000000',
  },
}
SCSS
$custom: #40150f;
$custom-light: #79544e;
$custom-dark: #000000;
JSON
{
  "hex": "#40150f",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 15
  },
  "hsl": {
    "h": 7.347,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26297,
    "c": 0.06871,
    "h": 30.3
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#40150F
secondary
#30717A
accent
#D1E543
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40150F

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

Preview Lab → · Contrast checker → · Palette generator →

#40150F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva