#1F012C#1F012C

#1F012C is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.2% C 0.087 H 313.6°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#1F012C
RGBrgb(31, 1, 44)
HSLhsl(282, 96%, 9%)
HSVhsv(282, 98%, 17%)
CMYKcmyk(29.5%, 97.7%, 0%, 82.7%)
CIE-LABlab(4.47, 22.43, -20.97)
CIE-LCHlch(4.47, 30.70, 316.93°)
OKLaboklab(18.21% 0.0598 -0.0628)
OKLCHoklch(18.21% 0.087 313.6)
XYZxyz(1.0305, 0.4949, 2.4236)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F012C #0E2C01
analogous
#0A012C #1F012C #2C0124
triadic
#1F012C #2C1F01 #012C1F
tetradic
#1F012C #2C0A01 #0E2C01 #01242C
square
#1F012C #2C0A01 #0E2C01 #01242C
split-complementary
#1F012C #242C01 #012C0A
monochromatic
#15011E #15011E #1F012C #490268 #7304A4

Accessibility & contrast

On white

19.11
#1F012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F012C
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F012C#FFFFFF#000000##FFFFFF
##1F012C1.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f012c;
/* rgb */ color: rgb(31, 1, 44);
/* oklch */ color: oklch(18.2% 0.087 313.6);
Tailwind
colors: {
  custom: {
    50: '#5c4665',
    500: '#1f012c',
    950: '#000000',
  },
}
SCSS
$custom: #1f012c;
$custom-light: #5c4665;
$custom-dark: #000000;
JSON
{
  "hex": "#1f012c",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 281.86,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.18213,
    "c": 0.08675,
    "h": 313.6
  },
  "luminance": 0.00495
}

Semantic roles & 50–950 ramp

primary
#1F012C
secondary
#327217
accent
#FF296A
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F012C

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

Preview Lab → · Contrast checker → · Palette generator →

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