#1F022A#1F022A

#1F022A is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.082 H 315.2°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#1F022A
RGBrgb(31, 2, 42)
HSLhsl(284, 91%, 9%)
HSVhsv(284, 95%, 16%)
CMYKcmyk(26.2%, 95.2%, 0%, 83.5%)
CIE-LABlab(4.53, 21.22, -19.35)
CIE-LCHlch(4.53, 28.72, 317.64°)
OKLaboklab(18.22% 0.0584 -0.058)
OKLCHoklch(18.22% 0.082 315.2)
XYZxyz(1.0046, 0.5019, 2.2340)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F022A #0D2A02
analogous
#0B022A #1F022A #2A0221
triadic
#1F022A #2A1F02 #022A1F
tetradic
#1F022A #2A0B02 #0D2A02 #02212A
square
#1F022A #2A0B02 #0D2A02 #02212A
split-complementary
#1F022A #212A02 #022A0B
monochromatic
#16011D #16011D #1F022A #4A0564 #75089F

Accessibility & contrast

On white

19.08
#1F022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F022A
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F022A#FFFFFF#000000##FFFFFF
##1F022A1.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#011029
Tritanopia (blue-blind)
#1E0A15
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f022a;
/* rgb */ color: rgb(31, 2, 42);
/* oklch */ color: oklch(18.2% 0.082 315.2);
Tailwind
colors: {
  custom: {
    50: '#5c4764',
    500: '#1f022a',
    950: '#000000',
  },
}
SCSS
$custom: #1f022a;
$custom-light: #5c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#1f022a",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 283.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18216,
    "c": 0.08226,
    "h": 315.2
  },
  "luminance": 0.00502
}

Semantic roles & 50–950 ramp

primary
#1F022A
secondary
#306F19
accent
#FF2964
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F022A

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

Preview Lab → · Contrast checker → · Palette generator →

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