#40191F#40191F

#40191F is a dark, moderate red. Relative luminance 0.019; OKLCH L 27.4% C 0.061 H 12.4°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#40191F
RGBrgb(64, 25, 31)
HSLhsl(351, 44%, 17%)
HSVhsv(351, 61%, 25%)
CMYKcmyk(0%, 60.9%, 51.6%, 74.9%)
CIE-LABlab(14.87, 19.68, 5.10)
CIE-LCHlch(14.87, 20.33, 14.52°)
OKLaboklab(27.38% 0.0596 0.0131)
OKLCHoklch(27.38% 0.061 12.4)
XYZxyz(2.7095, 1.8845, 1.5171)
Luminance0.0188 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40191F #19403A
analogous
#401933 #40191F #402619
triadic
#40191F #1F4019 #191F40
tetradic
#40191F #334019 #19403A #261940
square
#40191F #334019 #19403A #261940
split-complementary
#40191F #194026 #193340
monochromatic
#16090B #16090B #40191F #6C2A34 #983B4A

Accessibility & contrast

On white

15.25
#40191F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40191F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40191F
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40191F#FFFFFF#000000##FFFFFF
##40191F1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21211F
Deuteranopia (green-blind)
#2B281E
Tritanopia (blue-blind)
#46141B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40191f;
/* rgb */ color: rgb(64, 25, 31);
/* oklch */ color: oklch(27.4% 0.061 12.4);
Tailwind
colors: {
  custom: {
    50: '#77575a',
    500: '#40191f',
    950: '#000000',
  },
}
SCSS
$custom: #40191f;
$custom-light: #77575a;
$custom-dark: #000000;
JSON
{
  "hex": "#40191f",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 31
  },
  "hsl": {
    "h": 350.769,
    "s": 43.82,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27375,
    "c": 0.06101,
    "h": 12.4
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#40191F
secondary
#3F766E
accent
#D4C054
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40191F

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

Preview Lab → · Contrast checker → · Palette generator →

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