#1F0027#1F0027

#1F0027 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.5% C 0.084 H 319.0°. Best body text is #FFFFFF at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#1F0027
RGBrgb(31, 0, 39)
HSLhsl(288, 100%, 8%)
HSVhsv(288, 100%, 15%)
CMYKcmyk(20.5%, 100%, 0%, 84.7%)
CIE-LABlab(3.95, 20.98, -17.96)
CIE-LCHlch(3.95, 27.62, 319.43°)
OKLaboklab(17.51% 0.0638 -0.0554)
OKLCHoklch(17.51% 0.084 319)
XYZxyz(0.9312, 0.4378, 1.9545)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0027 #082700
analogous
#0B0027 #1F0027 #27001B
triadic
#1F0027 #271F00 #00271F
tetradic
#1F0027 #270B00 #082700 #001B27
square
#1F0027 #270B00 #082700 #001B27
split-complementary
#1F0027 #1B2700 #00270B
monochromatic
#18001F #18001F #1F0027 #500064 #8000A1

Accessibility & contrast

On white

19.31
#1F0027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0027
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0027#FFFFFF#000000##FFFFFF
##1F00271.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C28
Deuteranopia (green-blind)
#010F26
Tritanopia (blue-blind)
#1F0612
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f0027;
/* rgb */ color: rgb(31, 0, 39);
/* oklch */ color: oklch(17.5% 0.084 319.0);
Tailwind
colors: {
  custom: {
    50: '#5b4661',
    500: '#1f0027',
    950: '#000000',
  },
}
SCSS
$custom: #1f0027;
$custom-light: #5b4661;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0027",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 39
  },
  "hsl": {
    "h": 287.692,
    "s": 100,
    "l": 7.647
  },
  "oklch": {
    "l": 0.17513,
    "c": 0.08447,
    "h": 319
  },
  "luminance": 0.00438
}

Semantic roles & 50–950 ramp

primary
#1F0027
secondary
#266F14
accent
#FF2955
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040005
muted
#797779

Preview Lab

Preview with #1F0027

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

Preview Lab → · Contrast checker → · Palette generator →

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