#40271F#40271F

#40271F is a dark, muted red. Relative luminance 0.026; OKLCH L 30.2% C 0.041 H 38.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#40271F
RGBrgb(64, 39, 31)
HSLhsl(15, 35%, 19%)
HSVhsv(15, 52%, 25%)
CMYKcmyk(0%, 39.1%, 51.6%, 74.9%)
CIE-LABlab(18.54, 10.65, 10.13)
CIE-LCHlch(18.54, 14.70, 43.57°)
OKLaboklab(30.18% 0.0318 0.0253)
OKLCHoklch(30.18% 0.041 38.5)
XYZxyz(3.0873, 2.6402, 1.6431)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40271F #1F3840
analogous
#401F27 #40271F #40371F
triadic
#40271F #1F4027 #271F40
tetradic
#40271F #27401F #1F3840 #371F40
square
#40271F #27401F #1F3840 #371F40
split-complementary
#40271F #1F4037 #1F2740
monochromatic
#150D0A #170E0B #40271F #694033 #925947

Accessibility & contrast

On white

13.74
#40271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40271F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40271F#FFFFFF#000000##FFFFFF
##40271F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2A1E
Deuteranopia (green-blind)
#332F1F
Tritanopia (blue-blind)
#452325
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40271f;
/* rgb */ color: rgb(64, 39, 31);
/* oklch */ color: oklch(30.2% 0.041 38.5);
Tailwind
colors: {
  custom: {
    50: '#76615a',
    500: '#40271f',
    950: '#000000',
  },
}
SCSS
$custom: #40271f;
$custom-light: #76615a;
$custom-dark: #000000;
JSON
{
  "hex": "#40271f",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 14.545,
    "s": 34.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30178,
    "c": 0.04064,
    "h": 38.5
  },
  "luminance": 0.0264
}

Semantic roles & 50–950 ramp

primary
#40271F
secondary
#476974
accent
#B0CB5D
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090503
muted
#7B7978

Preview Lab

Preview with #40271F

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

Preview Lab → · Contrast checker → · Palette generator →

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