#400E18#400E18

#400E18 is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.5% C 0.077 H 12.9°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#400E18
RGBrgb(64, 14, 24)
HSLhsl(348, 64%, 15%)
HSVhsv(348, 78%, 25%)
CMYKcmyk(0%, 78.1%, 62.5%, 74.9%)
CIE-LABlab(12.42, 24.94, 6.84)
CIE-LCHlch(12.42, 25.86, 15.34°)
OKLaboklab(25.48% 0.0753 0.0172)
OKLCHoklch(25.48% 0.077 12.9)
XYZxyz(2.4365, 1.4703, 1.0195)
Luminance0.0147 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E18 #0E4036
analogous
#400E31 #400E18 #401D0E
triadic
#400E18 #18400E #0E1840
tetradic
#400E18 #31400E #0E4036 #1D0E40
square
#400E18 #31400E #0E4036 #1D0E40
split-complementary
#400E18 #0E401D #0E3140
monochromatic
#190509 #190509 #400E18 #72192B #A4243E

Accessibility & contrast

On white

16.23
#400E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E18
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E18#FFFFFF#000000##FFFFFF
##400E181.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1A18
Deuteranopia (green-blind)
#272417
Tritanopia (blue-blind)
#470512
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400e18;
/* rgb */ color: rgb(64, 14, 24);
/* oklch */ color: oklch(25.5% 0.077 12.9);
Tailwind
colors: {
  custom: {
    50: '#795054',
    500: '#400e18',
    950: '#000000',
  },
}
SCSS
$custom: #400e18;
$custom-light: #795054;
$custom-dark: #000000;
JSON
{
  "hex": "#400e18",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 24
  },
  "hsl": {
    "h": 348,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25475,
    "c": 0.07719,
    "h": 12.9
  },
  "luminance": 0.0147
}

Semantic roles & 50–950 ramp

primary
#400E18
secondary
#2F7B6C
accent
#E7C641
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #400E18

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

Preview Lab → · Contrast checker → · Palette generator →

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