#40141F#40141F

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

Color values

HEX#40141F
RGBrgb(64, 20, 31)
HSLhsl(345, 52%, 16%)
HSVhsv(345, 69%, 25%)
CMYKcmyk(0%, 68.8%, 51.6%, 74.9%)
CIE-LABlab(13.77, 22.59, 3.54)
CIE-LCHlch(13.77, 22.86, 8.91°)
OKLaboklab(26.55% 0.0687 0.0093)
OKLCHoklch(26.55% 0.069 7.7)
XYZxyz(2.6120, 1.6895, 1.4846)
Luminance0.0169 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40141F #144035
analogous
#401435 #40141F #401F14
triadic
#40141F #1F4014 #141F40
tetradic
#40141F #354014 #144035 #1F1440
square
#40141F #354014 #144035 #1F1440
split-complementary
#40141F #14401F #143540
monochromatic
#17070B #17070B #40141F #6F2336 #9D314C

Accessibility & contrast

On white

15.70
#40141F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40141F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40141F
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40141F#FFFFFF#000000##FFFFFF
##40141F1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1E1F
Deuteranopia (green-blind)
#29261E
Tritanopia (blue-blind)
#460E18
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40141f;
/* rgb */ color: rgb(64, 20, 31);
/* oklch */ color: oklch(26.5% 0.069 7.7);
Tailwind
colors: {
  custom: {
    50: '#78545a',
    500: '#40141f',
    950: '#000000',
  },
}
SCSS
$custom: #40141f;
$custom-light: #78545a;
$custom-dark: #000000;
JSON
{
  "hex": "#40141f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 31
  },
  "hsl": {
    "h": 345,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26546,
    "c": 0.06931,
    "h": 7.7
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#40141F
secondary
#387868
accent
#DCB84C
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40141F

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

Preview Lab → · Contrast checker → · Palette generator →

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