#1F0004#1F0004

#1F0004 is a very dark, moderate red. Relative luminance 0.003; OKLCH L 15.2% C 0.061 H 15.7°. Best body text is #FFFFFF at 19.81:1 contrast (WCAG AA passes).

Color values

HEX#1F0004
RGBrgb(31, 0, 4)
HSLhsl(352, 100%, 6%)
HSVhsv(352, 100%, 12%)
CMYKcmyk(0%, 100%, 87.1%, 87.8%)
CIE-LABlab(2.71, 12.36, 2.65)
CIE-LCHlch(2.71, 12.64, 12.08°)
OKLaboklab(15.2% 0.0585 0.0165)
OKLCHoklch(15.2% 0.061 15.7)
XYZxyz(0.5871, 0.3002, 0.1419)
Luminance0.0030 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0004 #001F1B
analogous
#1F0013 #1F0004 #1F0B00
triadic
#1F0004 #041F00 #00041F
tetradic
#1F0004 #131F00 #001F1B #0B001F
square
#1F0004 #131F00 #001F1B #0B001F
split-complementary
#1F0004 #001F0B #00131F
monochromatic
#1F0004 #1F0004 #1F0004 #5C000C #990014

Accessibility & contrast

On white

19.81
#1F0004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#1F0004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0004
19.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0004#FFFFFF#000000##FFFFFF
##1F00041.0019.811.0619.81
#FFFFFF19.811.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060604
Deuteranopia (green-blind)
#0F0D03
Tritanopia (blue-blind)
#230001
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #1f0004;
/* rgb */ color: rgb(31, 0, 4);
/* oklch */ color: oklch(15.2% 0.061 15.7);
Tailwind
colors: {
  custom: {
    50: '#5a4648',
    500: '#1f0004',
    950: '#000000',
  },
}
SCSS
$custom: #1f0004;
$custom-light: #5a4648;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0004",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 4
  },
  "hsl": {
    "h": 352.258,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.152,
    "c": 0.06079,
    "h": 15.7
  },
  "luminance": 0.003
}

Semantic roles & 50–950 ramp

primary
#1F0004
secondary
#12685D
accent
#FFE329
background
#F5F3F4
surface
#E9E5E6
border
#C5C1C2
text
#040000
muted
#797777

Preview Lab

Preview with #1F0004

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

Preview Lab → · Contrast checker → · Palette generator →

#1F0004 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva