#40030F#40030F

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

Color values

HEX#40030F
RGBrgb(64, 3, 15)
HSLhsl(348, 91%, 13%)
HSVhsv(348, 95%, 25%)
CMYKcmyk(0%, 95.3%, 76.6%, 74.9%)
CIE-LABlab(10.48, 29.06, 10.01)
CIE-LCHlch(10.48, 30.73, 19.01°)
OKLaboklab(23.97% 0.0865 0.0261)
OKLCHoklch(23.97% 0.09 16.8)
XYZxyz(2.2334, 1.1900, 0.5639)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40030F #034034
analogous
#40032D #40030F #401503
triadic
#40030F #0F4003 #030F40
tetradic
#40030F #2D4003 #034034 #150340
square
#40030F #2D4003 #034034 #150340
split-complementary
#40030F #034015 #032D40
monochromatic
#1D0107 #1D0107 #40030F #7A061D #B5082A

Accessibility & contrast

On white

16.96
#40030F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40030F
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40030F#FFFFFF#000000##FFFFFF
##40030F1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16140F
Deuteranopia (green-blind)
#25210D
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #40030f;
/* rgb */ color: rgb(64, 3, 15);
/* oklch */ color: oklch(24.0% 0.090 16.8);
Tailwind
colors: {
  custom: {
    50: '#7a4b4d',
    500: '#40030f',
    950: '#000000',
  },
}
SCSS
$custom: #40030f;
$custom-light: #7a4b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40030f",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 15
  },
  "hsl": {
    "h": 348.197,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23972,
    "c": 0.09036,
    "h": 16.8
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#40030F
secondary
#1D826E
accent
#FFD529
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40030F

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

Preview Lab → · Contrast checker → · Palette generator →

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