#040216#040216

#040216 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.3% C 0.050 H 283.0°. Best body text is #FFFFFF at 20.48:1 contrast (WCAG AA passes).

Color values

HEX#040216
RGBrgb(4, 2, 22)
HSLhsl(246, 83%, 5%)
HSVhsv(246, 91%, 9%)
CMYKcmyk(81.8%, 90.9%, 0%, 91.4%)
CIE-LABlab(1.15, 3.92, -9.06)
CIE-LCHlch(1.15, 9.88, 293.41°)
OKLaboklab(11.34% 0.0112 -0.0483)
OKLCHoklch(11.34% 0.05 283)
XYZxyz(0.2166, 0.1271, 0.7720)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040216 #141602
analogous
#020A16 #040216 #0E0216
triadic
#040216 #160402 #021604
tetradic
#040216 #16020A #141602 #02160E
square
#040216 #16020A #141602 #02160E
split-complementary
#040216 #160E02 #0A1602
monochromatic
#05031C #05031C #05031C #0E074E #180C86

Accessibility & contrast

On white

20.48
#040216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040216
20.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040216#FFFFFF#000000##FFFFFF
##0402161.0020.481.0320.48
#FFFFFF20.481.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000517
Deuteranopia (green-blind)
#000416
Tritanopia (blue-blind)
#000509
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040216;
/* rgb */ color: rgb(4, 2, 22);
/* oklch */ color: oklch(11.3% 0.050 283.0);
Tailwind
colors: {
  custom: {
    50: '#484852',
    500: '#040216',
    950: '#000000',
  },
}
SCSS
$custom: #040216;
$custom-light: #484852;
$custom-dark: #000000;
JSON
{
  "hex": "#040216",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 22
  },
  "hsl": {
    "h": 246,
    "s": 83.333,
    "l": 4.706
  },
  "oklch": {
    "l": 0.11338,
    "c": 0.04954,
    "h": 283
  },
  "luminance": 0.00127
}

Semantic roles & 50–950 ramp

primary
#040216
secondary
#555C18
accent
#FA2EE5
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040216

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

Preview Lab → · Contrast checker → · Palette generator →

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