#1A021A#1A021A

#1A021A is a very dark, moderate purple. Relative luminance 0.003; OKLCH L 15.8% C 0.063 H 328.1°. Best body text is #FFFFFF at 19.67:1 contrast (WCAG AA passes).

Color values

HEX#1A021A
RGBrgb(26, 2, 26)
HSLhsl(300, 86%, 5%)
HSVhsv(300, 92%, 10%)
CMYKcmyk(0%, 92.3%, 0%, 89.8%)
CIE-LABlab(3.05, 12.83, -9.16)
CIE-LCHlch(3.05, 15.77, 324.47°)
OKLaboklab(15.83% 0.0534 -0.0333)
OKLCHoklch(15.83% 0.063 328.1)
XYZxyz(0.6342, 0.3377, 1.0089)
Luminance0.0034 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A021A #021A02
analogous
#0E021A #1A021A #1A020E
triadic
#1A021A #1A1A02 #021A1A
tetradic
#1A021A #1A0E02 #021A02 #020E1A
square
#1A021A #1A0E02 #021A02 #020E1A
split-complementary
#1A021A #0E1A02 #021A0E
monochromatic
#1C021C #1C021C #1C021C #530653 #8C0B8C

Accessibility & contrast

On white

19.67
#1A021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#1A021A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A021A
19.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A021A#FFFFFF#000000##FFFFFF
##1A021A1.0019.671.0719.67
#FFFFFF19.671.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00091B
Deuteranopia (green-blind)
#060C19
Tritanopia (blue-blind)
#1B040C
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #1a021a;
/* rgb */ color: rgb(26, 2, 26);
/* oklch */ color: oklch(15.8% 0.063 328.1);
Tailwind
colors: {
  custom: {
    50: '#554756',
    500: '#1a021a',
    950: '#000000',
  },
}
SCSS
$custom: #1a021a;
$custom-light: #554756;
$custom-dark: #000000;
JSON
{
  "hex": "#1a021a",
  "rgb": {
    "r": 26,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 300,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.15834,
    "c": 0.06287,
    "h": 328.1
  },
  "luminance": 0.00338
}

Semantic roles & 50–950 ramp

primary
#1A021A
secondary
#186018
accent
#FC2C2C
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#030003
muted
#787778

Preview Lab

Preview with #1A021A

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

Preview Lab → · Contrast checker → · Palette generator →

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