#1F062A#1F062A

#1F062A is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.0% C 0.073 H 313.7°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#1F062A
RGBrgb(31, 6, 42)
HSLhsl(282, 75%, 9%)
HSVhsv(282, 86%, 16%)
CMYKcmyk(26.2%, 85.7%, 0%, 83.5%)
CIE-LABlab(5.32, 19.40, -18.11)
CIE-LCHlch(5.32, 26.54, 316.96°)
OKLaboklab(18.98% 0.0506 -0.0529)
OKLCHoklch(18.98% 0.073 313.7)
XYZxyz(1.0480, 0.5888, 2.2485)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F062A #112A06
analogous
#0D062A #1F062A #2A0623
triadic
#1F062A #2A1F06 #062A1F
tetradic
#1F062A #2A0D06 #112A06 #06232A
square
#1F062A #2A0D06 #112A06 #06232A
split-complementary
#1F062A #232A06 #062A0D
monochromatic
#14041B #14041B #1F062A #470E60 #6E1595

Accessibility & contrast

On white

18.79
#1F062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F062A
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F062A#FFFFFF#000000##FFFFFF
##1F062A1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#041229
Tritanopia (blue-blind)
#1E0D17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1f062a;
/* rgb */ color: rgb(31, 6, 42);
/* oklch */ color: oklch(19.0% 0.073 313.7);
Tailwind
colors: {
  custom: {
    50: '#5c4963',
    500: '#1f062a',
    950: '#000000',
  },
}
SCSS
$custom: #1f062a;
$custom-light: #5c4963;
$custom-dark: #000000;
JSON
{
  "hex": "#1f062a",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 281.667,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18982,
    "c": 0.07318,
    "h": 313.7
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#1F062A
secondary
#386B21
accent
#F2366F
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F062A

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

Preview Lab → · Contrast checker → · Palette generator →

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