#1F012E#1F012E

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

Color values

HEX#1F012E
RGBrgb(31, 1, 46)
HSLhsl(280, 96%, 9%)
HSVhsv(280, 98%, 18%)
CMYKcmyk(32.6%, 97.8%, 0%, 82%)
CIE-LABlab(4.61, 23.19, -22.25)
CIE-LCHlch(4.61, 32.14, 316.18°)
OKLaboklab(18.42% 0.059 -0.0663)
OKLCHoklch(18.42% 0.089 311.7)
XYZxyz(1.0690, 0.5103, 2.6264)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F012E #102E01
analogous
#09012E #1F012E #2E0127
triadic
#1F012E #2E1F01 #012E1F
tetradic
#1F012E #2E0901 #102E01 #01272E
square
#1F012E #2E0901 #102E01 #01272E
split-complementary
#1F012E #272E01 #012E09
monochromatic
#14011E #14011E #1F012E #47026A #7004A6

Accessibility & contrast

On white

19.06
#1F012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F012E
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F012E#FFFFFF#000000##FFFFFF
##1F012E1.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#1D0B17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1f012e;
/* rgb */ color: rgb(31, 1, 46);
/* oklch */ color: oklch(18.4% 0.089 311.7);
Tailwind
colors: {
  custom: {
    50: '#5c4667',
    500: '#1f012e',
    950: '#000000',
  },
}
SCSS
$custom: #1f012e;
$custom-light: #5c4667;
$custom-dark: #000000;
JSON
{
  "hex": "#1f012e",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 280,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18416,
    "c": 0.08878,
    "h": 311.7
  },
  "luminance": 0.0051
}

Semantic roles & 50–950 ramp

primary
#1F012E
secondary
#367417
accent
#FF2970
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1F012E

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

Preview Lab → · Contrast checker → · Palette generator →

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