#040016#040016

#040016 is a very dark, muted violet. Relative luminance 0.001; OKLCH L 10.2% C 0.059 H 287.5°. Best body text is #FFFFFF at 20.65:1 contrast (WCAG AA passes).

Color values

HEX#040016
RGBrgb(4, 0, 22)
HSLhsl(251, 100%, 4%)
HSVhsv(251, 100%, 9%)
CMYKcmyk(81.8%, 100%, 0%, 91.4%)
CIE-LABlab(0.76, 4.72, -9.64)
CIE-LCHlch(0.76, 10.73, 296.10°)
OKLaboklab(10.21% 0.0177 -0.056)
OKLCHoklch(10.21% 0.059 287.5)
XYZxyz(0.1948, 0.0837, 0.7648)
Luminance0.0008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040016 #121600
analogous
#000716 #040016 #0F0016
triadic
#040016 #160400 #001604
tetradic
#040016 #160007 #121600 #00160F
square
#040016 #160007 #121600 #00160F
split-complementary
#040016 #160F00 #071600
monochromatic
#06001F #06001F #06001F #0F0053 #1A0090

Accessibility & contrast

On white

20.65
#040016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#040016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040016
20.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040016#FFFFFF#000000##FFFFFF
##0400161.0020.651.0220.65
#FFFFFF20.651.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000317
Deuteranopia (green-blind)
#000216
Tritanopia (blue-blind)
#000408
Achromatopsia (no color)
#030303

Design tokens & code

CSS
--color: #040016;
/* rgb */ color: rgb(4, 0, 22);
/* oklch */ color: oklch(10.2% 0.059 287.5);
Tailwind
colors: {
  custom: {
    50: '#484752',
    500: '#040016',
    950: '#000000',
  },
}
SCSS
$custom: #040016;
$custom-light: #484752;
$custom-dark: #000000;
JSON
{
  "hex": "#040016",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 22
  },
  "hsl": {
    "h": 250.909,
    "s": 100,
    "l": 4.314
  },
  "oklch": {
    "l": 0.10211,
    "c": 0.0587,
    "h": 287.5
  },
  "luminance": 0.00084
}

Semantic roles & 50–950 ramp

primary
#040016
secondary
#526111
accent
#FF29D8
background
#F4F3F4
surface
#E6E5E7
border
#C2C1C3
text
#000002
muted
#777778

Preview Lab

Preview with #040016

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

Preview Lab → · Contrast checker → · Palette generator →

#040016 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva