#040416#040416

#040416 is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.3% C 0.042 H 278.1°. Best body text is #FFFFFF at 20.31:1 contrast (WCAG AA passes).

Color values

HEX#040416
RGBrgb(4, 4, 22)
HSLhsl(240, 69%, 5%)
HSVhsv(240, 82%, 9%)
CMYKcmyk(81.8%, 81.8%, 0%, 91.4%)
CIE-LABlab(1.54, 3.12, -8.49)
CIE-LCHlch(1.54, 9.04, 290.18°)
OKLaboklab(12.28% 0.006 -0.042)
OKLCHoklch(12.28% 0.042 278.1)
XYZxyz(0.2383, 0.1706, 0.7793)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040416 #161604
analogous
#040D16 #040416 #0D0416
triadic
#040416 #160404 #041604
tetradic
#040416 #16040D #161604 #04160D
square
#040416 #16040D #161604 #04160D
split-complementary
#040416 #160D04 #0D1604
monochromatic
#05051A #05051A #05051A #0D0D4A #17177E

Accessibility & contrast

On white

20.31
#040416 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040416 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040416
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040416#FFFFFF#000000##FFFFFF
##0404161.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000617
Deuteranopia (green-blind)
#000516
Tritanopia (blue-blind)
#00070B
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040416;
/* rgb */ color: rgb(4, 4, 22);
/* oklch */ color: oklch(12.3% 0.042 278.1);
Tailwind
colors: {
  custom: {
    50: '#484852',
    500: '#040416',
    950: '#000000',
  },
}
SCSS
$custom: #040416;
$custom-light: #484852;
$custom-dark: #000000;
JSON
{
  "hex": "#040416",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 22
  },
  "hsl": {
    "h": 240,
    "s": 69.231,
    "l": 5.098
  },
  "oklch": {
    "l": 0.12278,
    "c": 0.04248,
    "h": 278.1
  },
  "luminance": 0.00171
}

Semantic roles & 50–950 ramp

primary
#040416
secondary
#57571E
accent
#EC3CEC
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040416

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

Preview Lab → · Contrast checker → · Palette generator →

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