#1F012A#1F012A

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

Color values

HEX#1F012A
RGBrgb(31, 1, 42)
HSLhsl(284, 95%, 8%)
HSVhsv(284, 98%, 16%)
CMYKcmyk(26.2%, 97.6%, 0%, 83.5%)
CIE-LABlab(4.34, 21.67, -19.66)
CIE-LCHlch(4.34, 29.26, 317.79°)
OKLaboklab(18.01% 0.0605 -0.0593)
OKLCHoklch(18.01% 0.085 315.5)
XYZxyz(0.9938, 0.4802, 2.2304)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F012A #0C2A01
analogous
#0A012A #1F012A #2A0120
triadic
#1F012A #2A1F01 #012A1F
tetradic
#1F012A #2A0A01 #0C2A01 #01202A
square
#1F012A #2A0A01 #0C2A01 #01202A
split-complementary
#1F012A #202A01 #012A0A
monochromatic
#16011E #16011E #1F012A #4B0266 #7704A2

Accessibility & contrast

On white

19.16
#1F012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F012A
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F012A#FFFFFF#000000##FFFFFF
##1F012A1.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#001029
Tritanopia (blue-blind)
#1E0915
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1f012a;
/* rgb */ color: rgb(31, 1, 42);
/* oklch */ color: oklch(18.0% 0.085 315.5);
Tailwind
colors: {
  custom: {
    50: '#5c4664',
    500: '#1f012a',
    950: '#000000',
  },
}
SCSS
$custom: #1f012a;
$custom-light: #5c4664;
$custom-dark: #000000;
JSON
{
  "hex": "#1f012a",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 283.902,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18014,
    "c": 0.08474,
    "h": 315.5
  },
  "luminance": 0.0048
}

Semantic roles & 50–950 ramp

primary
#1F012A
secondary
#2F7016
accent
#FF2962
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F012A

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

Preview Lab → · Contrast checker → · Palette generator →

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