#1F0128#1F0128

#1F0128 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 17.8% C 0.083 H 317.6°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#1F0128
RGBrgb(31, 1, 40)
HSLhsl(286, 95%, 8%)
HSVhsv(286, 98%, 16%)
CMYKcmyk(22.5%, 97.5%, 0%, 84.3%)
CIE-LABlab(4.21, 20.92, -18.33)
CIE-LCHlch(4.21, 27.81, 318.78°)
OKLaboklab(17.82% 0.0611 -0.0558)
OKLCHoklch(17.82% 0.083 317.6)
XYZxyz(0.9589, 0.4663, 2.0466)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0128 #0A2801
analogous
#0B0128 #1F0128 #28011D
triadic
#1F0128 #281F01 #01281F
tetradic
#1F0128 #280B01 #0A2801 #011D28
square
#1F0128 #280B01 #0A2801 #011D28
split-complementary
#1F0128 #1D2801 #01280B
monochromatic
#17011E #17011E #1F0128 #4D0264 #7C049F

Accessibility & contrast

On white

19.21
#1F0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0128
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0128#FFFFFF#000000##FFFFFF
##1F01281.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D29
Deuteranopia (green-blind)
#021027
Tritanopia (blue-blind)
#1F0813
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1f0128;
/* rgb */ color: rgb(31, 1, 40);
/* oklch */ color: oklch(17.8% 0.083 317.6);
Tailwind
colors: {
  custom: {
    50: '#5b4662',
    500: '#1f0128',
    950: '#000000',
  },
}
SCSS
$custom: #1f0128;
$custom-light: #5b4662;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0128",
  "rgb": {
    "r": 31,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 286.154,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17821,
    "c": 0.08273,
    "h": 317.6
  },
  "luminance": 0.00466
}

Semantic roles & 50–950 ramp

primary
#1F0128
secondary
#2B6F16
accent
#FF295A
background
#F5F3F5
surface
#E9E5EA
border
#C5C1C6
text
#040005
muted
#797779

Preview Lab

Preview with #1F0128

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

Preview Lab → · Contrast checker → · Palette generator →

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