#1F012B#1F012B

#1F012B is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.1% C 0.086 H 314.6°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#1F012B
RGBrgb(31, 1, 43)
HSLhsl(283, 95%, 9%)
HSVhsv(283, 98%, 17%)
CMYKcmyk(27.9%, 97.7%, 0%, 83.1%)
CIE-LABlab(4.40, 22.05, -20.31)
CIE-LCHlch(4.40, 29.98, 317.34°)
OKLaboklab(18.11% 0.0602 -0.0611)
OKLCHoklch(18.11% 0.086 314.6)
XYZxyz(1.0119, 0.4875, 2.3258)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F012B #0D2B01
analogous
#0A012B #1F012B #2B0122
triadic
#1F012B #2B1F01 #012B1F
tetradic
#1F012B #2B0A01 #0D2B01 #01222B
square
#1F012B #2B0A01 #0D2B01 #01222B
split-complementary
#1F012B #222B01 #012B0A
monochromatic
#16011E #16011E #1F012B #4A0267 #7504A3

Accessibility & contrast

On white

19.14
#1F012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F012B
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F012B#FFFFFF#000000##FFFFFF
##1F012B1.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f012b;
/* rgb */ color: rgb(31, 1, 43);
/* oklch */ color: oklch(18.1% 0.086 314.6);
Tailwind
colors: {
  custom: {
    50: '#5c4664',
    500: '#1f012b',
    950: '#000000',
  },
}
SCSS
$custom: #1f012b;
$custom-light: #5c4664;
$custom-dark: #000000;
JSON
{
  "hex": "#1f012b",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 282.857,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18113,
    "c": 0.08574,
    "h": 314.6
  },
  "luminance": 0.00487
}

Semantic roles & 50–950 ramp

primary
#1F012B
secondary
#307117
accent
#FF2966
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1F012B

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

Preview Lab → · Contrast checker → · Palette generator →

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