#400305#400305

#400305 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 23.8% C 0.091 H 26.0°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#400305
RGBrgb(64, 3, 5)
HSLhsl(358, 91%, 13%)
HSVhsv(358, 95%, 25%)
CMYKcmyk(0%, 95.3%, 92.2%, 74.9%)
CIE-LABlab(10.31, 28.55, 14.13)
CIE-LCHlch(10.31, 31.86, 26.34°)
OKLaboklab(23.79% 0.0819 0.0399)
OKLCHoklch(23.79% 0.091 26)
XYZxyz(2.1746, 1.1664, 0.2542)
Luminance0.0117 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400305 #03403E
analogous
#400323 #400305 #401F03
triadic
#400305 #054003 #030540
tetradic
#400305 #234003 #03403E #1F0340
square
#400305 #234003 #03403E #1F0340
split-complementary
#400305 #03401F #032340
monochromatic
#1D0102 #1D0102 #400305 #7A060A #B5080E

Accessibility & contrast

On white

17.03
#400305 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#400305 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400305
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400305#FFFFFF#000000##FFFFFF
##4003051.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171304
Deuteranopia (green-blind)
#262103
Tritanopia (blue-blind)
#480004
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400305;
/* rgb */ color: rgb(64, 3, 5);
/* oklch */ color: oklch(23.8% 0.091 26.0);
Tailwind
colors: {
  custom: {
    50: '#7b4b49',
    500: '#400305',
    950: '#000000',
  },
}
SCSS
$custom: #400305;
$custom-light: #7b4b49;
$custom-dark: #000000;
JSON
{
  "hex": "#400305",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 5
  },
  "hsl": {
    "h": 358.033,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23787,
    "c": 0.09108,
    "h": 26
  },
  "luminance": 0.01166
}

Semantic roles & 50–950 ramp

primary
#400305
secondary
#1D827F
accent
#FFF829
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400305

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

Preview Lab → · Contrast checker → · Palette generator →

#400305 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva