#1F0026#1F0026

#1F0026 is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.4% C 0.084 H 320.1°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#1F0026
RGBrgb(31, 0, 38)
HSLhsl(289, 100%, 7%)
HSVhsv(289, 100%, 15%)
CMYKcmyk(18.4%, 100%, 0%, 85.1%)
CIE-LABlab(3.90, 20.60, -17.28)
CIE-LCHlch(3.90, 26.89, 320.01°)
OKLaboklab(17.42% 0.0641 -0.0536)
OKLCHoklch(17.42% 0.084 320.1)
XYZxyz(0.9149, 0.4313, 1.8684)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0026 #072600
analogous
#0C0026 #1F0026 #26001A
triadic
#1F0026 #261F00 #00261F
tetradic
#1F0026 #260C00 #072600 #001A26
square
#1F0026 #260C00 #072600 #001A26
split-complementary
#1F0026 #1A2600 #00260C
monochromatic
#19001F #19001F #1F0026 #510063 #8300A0

Accessibility & contrast

On white

19.33
#1F0026 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F0026
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0026#FFFFFF#000000##FFFFFF
##1F00261.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B27
Deuteranopia (green-blind)
#020F25
Tritanopia (blue-blind)
#1F0612
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #1f0026;
/* rgb */ color: rgb(31, 0, 38);
/* oklch */ color: oklch(17.4% 0.084 320.1);
Tailwind
colors: {
  custom: {
    50: '#5b4660',
    500: '#1f0026',
    950: '#000000',
  },
}
SCSS
$custom: #1f0026;
$custom-light: #5b4660;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0026",
  "rgb": {
    "r": 31,
    "g": 0,
    "b": 38
  },
  "hsl": {
    "h": 288.947,
    "s": 100,
    "l": 7.451
  },
  "oklch": {
    "l": 0.17417,
    "c": 0.08354,
    "h": 320.1
  },
  "luminance": 0.00431
}

Semantic roles & 50–950 ramp

primary
#1F0026
secondary
#246E13
accent
#FF2950
background
#F5F3F5
surface
#E9E5E9
border
#C5C1C5
text
#040005
muted
#797779

Preview Lab

Preview with #1F0026

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

Preview Lab → · Contrast checker → · Palette generator →

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