#1F072A#1F072A

#1F072A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.2% C 0.071 H 313.3°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#1F072A
RGBrgb(31, 7, 42)
HSLhsl(281, 71%, 10%)
HSVhsv(281, 83%, 16%)
CMYKcmyk(26.2%, 83.3%, 0%, 83.5%)
CIE-LABlab(5.51, 18.94, -17.81)
CIE-LCHlch(5.51, 25.99, 316.76°)
OKLaboklab(19.16% 0.0488 -0.0517)
OKLCHoklch(19.16% 0.071 313.3)
XYZxyz(1.0589, 0.6105, 2.2521)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F072A #122A07
analogous
#0E072A #1F072A #2A0724
triadic
#1F072A #2A1F07 #072A1F
tetradic
#1F072A #2A0E07 #122A07 #07242A
square
#1F072A #2A0E07 #122A07 #07242A
split-complementary
#1F072A #242A07 #072A0E
monochromatic
#13041A #13041A #1F072A #46105E #6C1893

Accessibility & contrast

On white

18.72
#1F072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1F072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F072A
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F072A#FFFFFF#000000##FFFFFF
##1F072A1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#051329
Tritanopia (blue-blind)
#1E0E17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f072a;
/* rgb */ color: rgb(31, 7, 42);
/* oklch */ color: oklch(19.2% 0.071 313.3);
Tailwind
colors: {
  custom: {
    50: '#5c4963',
    500: '#1f072a',
    950: '#000000',
  },
}
SCSS
$custom: #1f072a;
$custom-light: #5c4963;
$custom-dark: #000000;
JSON
{
  "hex": "#1f072a",
  "rgb": {
    "r": 31,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 281.143,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.19164,
    "c": 0.07109,
    "h": 313.3
  },
  "luminance": 0.0061
}

Semantic roles & 50–950 ramp

primary
#1F072A
secondary
#396A23
accent
#EE3A72
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #1F072A

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

Preview Lab → · Contrast checker → · Palette generator →

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