#1F032A#1F032A

#1F032A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.4% C 0.080 H 314.8°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#1F032A
RGBrgb(31, 3, 42)
HSLhsl(283, 87%, 9%)
HSVhsv(283, 93%, 16%)
CMYKcmyk(26.2%, 92.9%, 0%, 83.5%)
CIE-LABlab(4.73, 20.77, -19.04)
CIE-LCHlch(4.73, 28.18, 317.49°)
OKLaboklab(18.41% 0.0563 -0.0566)
OKLCHoklch(18.41% 0.08 314.8)
XYZxyz(1.0155, 0.5236, 2.2376)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F032A #0E2A03
analogous
#0C032A #1F032A #2A0322
triadic
#1F032A #2A1F03 #032A1F
tetradic
#1F032A #2A0C03 #0E2A03 #03222A
square
#1F032A #2A0C03 #0E2A03 #03222A
split-complementary
#1F032A #222A03 #032A0C
monochromatic
#15021D #15021D #1F032A #490763 #730B9C

Accessibility & contrast

On white

19.01
#1F032A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1F032A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F032A
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F032A#FFFFFF#000000##FFFFFF
##1F032A1.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#1E0B15
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f032a;
/* rgb */ color: rgb(31, 3, 42);
/* oklch */ color: oklch(18.4% 0.080 314.8);
Tailwind
colors: {
  custom: {
    50: '#5c4764',
    500: '#1f032a',
    950: '#000000',
  },
}
SCSS
$custom: #1f032a;
$custom-light: #5c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#1f032a",
  "rgb": {
    "r": 31,
    "g": 3,
    "b": 42
  },
  "hsl": {
    "h": 283.077,
    "s": 86.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18414,
    "c": 0.07988,
    "h": 314.8
  },
  "luminance": 0.00524
}

Semantic roles & 50–950 ramp

primary
#1F032A
secondary
#326E1B
accent
#FD2B66
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F032A

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

Preview Lab → · Contrast checker → · Palette generator →

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