#040B16#040B16

#040B16 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.8% C 0.027 H 255.2°. Best body text is #FFFFFF at 19.73:1 contrast (WCAG AA passes).

Color values

HEX#040B16
RGBrgb(4, 11, 22)
HSLhsl(217, 69%, 5%)
HSVhsv(217, 82%, 9%)
CMYKcmyk(81.8%, 50%, 0%, 91.4%)
CIE-LABlab(2.92, 0.30, -6.48)
CIE-LCHlch(2.92, 6.49, 272.68°)
OKLaboklab(14.79% -0.007 -0.0265)
OKLCHoklch(14.79% 0.027 255.2)
XYZxyz(0.3145, 0.3231, 0.8047)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B16 #160F04
analogous
#041416 #040B16 #060416
triadic
#040B16 #16040B #0B1604
tetradic
#040B16 #160414 #160F04 #041606
square
#040B16 #160414 #160F04 #041606
split-complementary
#040B16 #160604 #141604
monochromatic
#050D1A #050D1A #050D1A #0D254A #173F7E

Accessibility & contrast

On white

19.73
#040B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B16
19.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B16#FFFFFF#000000##FFFFFF
##040B161.0019.731.0619.73
#FFFFFF19.731.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070C16
Deuteranopia (green-blind)
#050A16
Tritanopia (blue-blind)
#000D0F
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040b16;
/* rgb */ color: rgb(4, 11, 22);
/* oklch */ color: oklch(14.8% 0.027 255.2);
Tailwind
colors: {
  custom: {
    50: '#484c52',
    500: '#040b16',
    950: '#000000',
  },
}
SCSS
$custom: #040b16;
$custom-light: #484c52;
$custom-dark: #000000;
JSON
{
  "hex": "#040b16",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 22
  },
  "hsl": {
    "h": 216.667,
    "s": 69.231,
    "l": 5.098
  },
  "oklch": {
    "l": 0.14789,
    "c": 0.02742,
    "h": 255.2
  },
  "luminance": 0.00323
}

Semantic roles & 50–950 ramp

primary
#040B16
secondary
#57411E
accent
#A73CEC
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040B16

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

Preview Lab → · Contrast checker → · Palette generator →

#040B16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva