#1A021F#1A021F

#1A021F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 16.3% C 0.068 H 320.9°. Best body text is #FFFFFF at 19.58:1 contrast (WCAG AA passes).

Color values

HEX#1A021F
RGBrgb(26, 2, 31)
HSLhsl(290, 88%, 6%)
HSVhsv(290, 94%, 12%)
CMYKcmyk(16.1%, 93.5%, 0%, 87.8%)
CIE-LABlab(3.27, 14.38, -12.83)
CIE-LCHlch(3.27, 19.27, 318.26°)
OKLaboklab(16.26% 0.0529 -0.043)
OKLCHoklch(16.26% 0.068 320.9)
XYZxyz(0.6950, 0.3620, 1.3293)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A021F #071F02
analogous
#0C021F #1A021F #1F0216
triadic
#1A021F #1F1A02 #021F1A
tetradic
#1A021F #1F0C02 #071F02 #02161F
square
#1A021F #1F0C02 #071F02 #02161F
split-complementary
#1A021F #161F02 #021F0C
monochromatic
#18021D #18021D #1A021F #4A0658 #7A0992

Accessibility & contrast

On white

19.58
#1A021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A021F
19.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A021F#FFFFFF#000000##FFFFFF
##1A021F1.0019.581.0719.58
#FFFFFF19.581.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A20
Deuteranopia (green-blind)
#040D1E
Tritanopia (blue-blind)
#1A060F
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #1a021f;
/* rgb */ color: rgb(26, 2, 31);
/* oklch */ color: oklch(16.3% 0.068 320.9);
Tailwind
colors: {
  custom: {
    50: '#55475a',
    500: '#1a021f',
    950: '#000000',
  },
}
SCSS
$custom: #1a021f;
$custom-light: #55475a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a021f",
  "rgb": {
    "r": 26,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 289.655,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.16255,
    "c": 0.06818,
    "h": 320.9
  },
  "luminance": 0.00362
}

Semantic roles & 50–950 ramp

primary
#1A021F
secondary
#256518
accent
#FE2A4E
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#030004
muted
#787779

Preview Lab

Preview with #1A021F

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

Preview Lab → · Contrast checker → · Palette generator →

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