#1F082A#1F082A

#1F082A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.3% C 0.069 H 313.0°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#1F082A
RGBrgb(31, 8, 42)
HSLhsl(281, 68%, 10%)
HSVhsv(281, 81%, 16%)
CMYKcmyk(26.2%, 81%, 0%, 83.5%)
CIE-LABlab(5.71, 18.47, -17.50)
CIE-LCHlch(5.71, 25.44, 316.55°)
OKLaboklab(19.34% 0.0471 -0.0505)
OKLCHoklch(19.34% 0.069 313)
XYZxyz(1.0698, 0.6322, 2.2557)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F082A #132A08
analogous
#0E082A #1F082A #2A0824
triadic
#1F082A #2A1F08 #082A1F
tetradic
#1F082A #2A0E08 #132A08 #08242A
square
#1F082A #2A0E08 #132A08 #08242A
split-complementary
#1F082A #242A08 #082A0E
monochromatic
#13051A #13051A #1F082A #45125D #6B1C91

Accessibility & contrast

On white

18.64
#1F082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F082A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F082A
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F082A#FFFFFF#000000##FFFFFF
##1F082A1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#061329
Tritanopia (blue-blind)
#1E0F17
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f082a;
/* rgb */ color: rgb(31, 8, 42);
/* oklch */ color: oklch(19.3% 0.069 313.0);
Tailwind
colors: {
  custom: {
    50: '#5c4a63',
    500: '#1f082a',
    950: '#000000',
  },
}
SCSS
$custom: #1f082a;
$custom-light: #5c4a63;
$custom-dark: #000000;
JSON
{
  "hex": "#1f082a",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 280.588,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.19343,
    "c": 0.06906,
    "h": 313
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#1F082A
secondary
#3B6925
accent
#EB3D75
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #1F082A

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

Preview Lab → · Contrast checker → · Palette generator →

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