#1F022C#1F022C

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

Color values

HEX#1F022C
RGBrgb(31, 2, 44)
HSLhsl(281, 91%, 9%)
HSVhsv(281, 95%, 17%)
CMYKcmyk(29.5%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.67, 21.97, -20.66)
CIE-LCHlch(4.67, 30.16, 316.77°)
OKLaboklab(18.41% 0.0578 -0.0615)
OKLCHoklch(18.41% 0.084 313.2)
XYZxyz(1.0413, 0.5166, 2.4272)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F022C #0F2C02
analogous
#0A022C #1F022C #2C0224
triadic
#1F022C #2C1F02 #022C1F
tetradic
#1F022C #2C0A02 #0F2C02 #02242C
square
#1F022C #2C0A02 #0F2C02 #02242C
split-complementary
#1F022C #242C02 #022C0A
monochromatic
#15011D #15011D #1F022C #480567 #7107A1

Accessibility & contrast

On white

19.03
#1F022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F022C
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F022C#FFFFFF#000000##FFFFFF
##1F022C1.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1E0B16
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f022c;
/* rgb */ color: rgb(31, 2, 44);
/* oklch */ color: oklch(18.4% 0.084 313.2);
Tailwind
colors: {
  custom: {
    50: '#5c4765',
    500: '#1f022c',
    950: '#000000',
  },
}
SCSS
$custom: #1f022c;
$custom-light: #5c4765;
$custom-dark: #000000;
JSON
{
  "hex": "#1f022c",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 281.429,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.1841,
    "c": 0.08438,
    "h": 313.2
  },
  "luminance": 0.00517
}

Semantic roles & 50–950 ramp

primary
#1F022C
secondary
#347119
accent
#FF296B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F022C

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

Preview Lab → · Contrast checker → · Palette generator →

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