#1F0000#1F0000

#1F0000 is a very dark, moderate red. Relative luminance 0.003; OKLCH L 15.0% C 0.062 H 29.2°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#1F0000
RGBrgb(31, 0, 0)
HSLhsl(0, 100%, 6%)
HSVhsv(0, 100%, 12%)
CMYKcmyk(0%, 100%, 100%, 87.8%)
CIE-LABlab(2.63, 11.81, 4.16)
CIE-LCHlch(2.63, 12.52, 19.41°)
OKLaboklab(15.03% 0.0538 0.0301)
OKLCHoklch(15.03% 0.062 29.2)
XYZxyz(0.5652, 0.2914, 0.0265)
Luminance0.0029 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0000 #001F1F
analogous
#1F000F #1F0000 #1F0F00
triadic
#1F0000 #001F00 #00001F
tetradic
#1F0000 #0F1F00 #001F1F #0F001F
square
#1F0000 #0F1F00 #001F1F #0F001F
split-complementary
#1F0000 #001F0F #000F1F
monochromatic
#1F0000 #1F0000 #1F0000 #5C0000 #990000

Accessibility & contrast

On white

19.85
#1F0000 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0000
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0000#FFFFFF#000000##FFFFFF
##1F00001.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070500
Deuteranopia (green-blind)
#100C00
Tritanopia (blue-blind)
#230000
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #1f0000;
/* rgb */ color: rgb(31, 0, 0);
/* oklch */ color: oklch(15.0% 0.062 29.2);
Tailwind
colors: {
  custom: {
    50: '#5a4647',
    500: '#1f0000',
    950: '#000000',
  },
}
SCSS
$custom: #1f0000;
$custom-light: #5a4647;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0000",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 0
  },
  "hsl": {
    "h": 0,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.15026,
    "c": 0.06166,
    "h": 29.2
  },
  "luminance": 0.00291
}

Semantic roles & 50–950 ramp

primary
#1F0000
secondary
#126868
accent
#FFFF29
background
#F5F3F3
surface
#E9E5E5
border
#C5C1C1
text
#040000
muted
#797777

Preview Lab

Preview with #1F0000

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

Preview Lab → · Contrast checker → · Palette generator →

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