#1F002C#1F002C

#1F002C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.0% C 0.089 H 313.9°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#1F002C
RGBrgb(31, 0, 44)
HSLhsl(282, 100%, 9%)
HSVhsv(282, 100%, 17%)
CMYKcmyk(29.5%, 100%, 0%, 82.7%)
CIE-LABlab(4.27, 22.88, -21.28)
CIE-LCHlch(4.27, 31.25, 317.08°)
OKLaboklab(18.01% 0.0619 -0.0642)
OKLCHoklch(18.01% 0.089 313.9)
XYZxyz(1.0196, 0.4732, 2.4200)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F002C #0D2C00
analogous
#09002C #1F002C #2C0023
triadic
#1F002C #2C1F00 #002C1F
tetradic
#1F002C #2C0900 #0D2C00 #00232C
square
#1F002C #2C0900 #0D2C00 #00232C
split-complementary
#1F002C #232C00 #002C09
monochromatic
#16001F #16001F #1F002C #4A0069 #7500A6

Accessibility & contrast

On white

19.19
#1F002C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1F002C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F002C
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F002C#FFFFFF#000000##FFFFFF
##1F002C1.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#1E0915
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1f002c;
/* rgb */ color: rgb(31, 0, 44);
/* oklch */ color: oklch(18.0% 0.089 313.9);
Tailwind
colors: {
  custom: {
    50: '#5c4665',
    500: '#1f002c',
    950: '#000000',
  },
}
SCSS
$custom: #1f002c;
$custom-light: #5c4665;
$custom-dark: #000000;
JSON
{
  "hex": "#1f002c",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 44
  },
  "hsl": {
    "h": 282.273,
    "s": 100,
    "l": 8.627
  },
  "oklch": {
    "l": 0.1801,
    "c": 0.08921,
    "h": 313.9
  },
  "luminance": 0.00473
}

Semantic roles & 50–950 ramp

primary
#1F002C
secondary
#307314
accent
#FF2968
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F002C

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

Preview Lab → · Contrast checker → · Palette generator →

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