#1E021F#1E021F

#1E021F is a very dark, moderate purple. Relative luminance 0.004; OKLCH L 17.0% C 0.070 H 326.7°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#1E021F
RGBrgb(30, 2, 31)
HSLhsl(298, 88%, 6%)
HSVhsv(298, 94%, 12%)
CMYKcmyk(3.2%, 93.5%, 0%, 87.8%)
CIE-LABlab(3.78, 16.66, -12.01)
CIE-LCHlch(3.78, 20.54, 324.21°)
OKLaboklab(17.05% 0.0589 -0.0386)
OKLCHoklch(17.05% 0.07 326.7)
XYZxyz(0.8044, 0.4184, 1.3345)
Luminance0.0042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E021F #031F02
analogous
#10021F #1E021F #1F0212
triadic
#1E021F #1F1E02 #021F1E
tetradic
#1E021F #1F1002 #031F02 #02121F
square
#1E021F #1F1002 #031F02 #02121F
split-complementary
#1E021F #121F02 #021F10
monochromatic
#1C021D #1C021D #1E021F #560658 #8D0992

Accessibility & contrast

On white

19.38
#1E021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#1E021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E021F
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E021F#FFFFFF#000000##FFFFFF
##1E021F1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B20
Deuteranopia (green-blind)
#070F1E
Tritanopia (blue-blind)
#1F050F
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #1e021f;
/* rgb */ color: rgb(30, 2, 31);
/* oklch */ color: oklch(17.0% 0.070 326.7);
Tailwind
colors: {
  custom: {
    50: '#59475a',
    500: '#1e021f',
    950: '#000000',
  },
}
SCSS
$custom: #1e021f;
$custom-light: #59475a;
$custom-dark: #000000;
JSON
{
  "hex": "#1e021f",
  "rgb": {
    "r": 30,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 297.931,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.17049,
    "c": 0.0704,
    "h": 326.7
  },
  "luminance": 0.00418
}

Semantic roles & 50–950 ramp

primary
#1E021F
secondary
#1B6518
accent
#FE2A31
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#030004
muted
#787779

Preview Lab

Preview with #1E021F

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

Preview Lab → · Contrast checker → · Palette generator →

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