#40030C#40030C

#40030C is a very dark, moderate red. Relative luminance 0.012; OKLCH L 23.9% C 0.090 H 19.7°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#40030C
RGBrgb(64, 3, 12)
HSLhsl(351, 91%, 13%)
HSVhsv(351, 95%, 25%)
CMYKcmyk(0%, 95.3%, 81.2%, 74.9%)
CIE-LABlab(10.42, 28.89, 11.40)
CIE-LCHlch(10.42, 31.06, 21.54°)
OKLaboklab(23.91% 0.0851 0.0304)
OKLCHoklch(23.91% 0.09 19.7)
XYZxyz(2.2135, 1.1820, 0.4594)
Luminance0.0118 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40030C #034037
analogous
#40032A #40030C #401803
triadic
#40030C #0C4003 #030C40
tetradic
#40030C #2A4003 #034037 #180340
square
#40030C #2A4003 #034037 #180340
split-complementary
#40030C #034018 #032A40
monochromatic
#1D0105 #1D0105 #40030C #7A0617 #B50822

Accessibility & contrast

On white

16.98
#40030C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#40030C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40030C
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40030C#FFFFFF#000000##FFFFFF
##40030C1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16140C
Deuteranopia (green-blind)
#25210A
Tritanopia (blue-blind)
#470007
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #40030c;
/* rgb */ color: rgb(64, 3, 12);
/* oklch */ color: oklch(23.9% 0.090 19.7);
Tailwind
colors: {
  custom: {
    50: '#7a4b4c',
    500: '#40030c',
    950: '#000000',
  },
}
SCSS
$custom: #40030c;
$custom-light: #7a4b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#40030c",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 12
  },
  "hsl": {
    "h": 351.148,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2391,
    "c": 0.0904,
    "h": 19.7
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#40030C
secondary
#1D8273
accent
#FFDF29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40030C

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

Preview Lab → · Contrast checker → · Palette generator →

#40030C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva