#040A16#040A16

#040A16 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.5% C 0.029 H 259.1°. Best body text is #FFFFFF at 19.81:1 contrast (WCAG AA passes).

Color values

HEX#040A16
RGBrgb(4, 10, 22)
HSLhsl(220, 69%, 5%)
HSVhsv(220, 82%, 9%)
CMYKcmyk(81.8%, 54.5%, 0%, 91.4%)
CIE-LABlab(2.72, 0.72, -6.77)
CIE-LCHlch(2.72, 6.81, 276.04°)
OKLaboklab(14.47% -0.0054 -0.0284)
OKLCHoklch(14.47% 0.029 259.1)
XYZxyz(0.3034, 0.3008, 0.8010)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A16 #161004
analogous
#041316 #040A16 #070416
triadic
#040A16 #16040A #0A1604
tetradic
#040A16 #160413 #161004 #041607
square
#040A16 #160413 #161004 #041607
split-complementary
#040A16 #160704 #131604
monochromatic
#050C1A #050C1A #050C1A #0D224A #17397E

Accessibility & contrast

On white

19.81
#040A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A16
19.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A16#FFFFFF#000000##FFFFFF
##040A161.0019.811.0619.81
#FFFFFF19.811.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060B16
Deuteranopia (green-blind)
#040916
Tritanopia (blue-blind)
#000D0E
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040a16;
/* rgb */ color: rgb(4, 10, 22);
/* oklch */ color: oklch(14.5% 0.029 259.1);
Tailwind
colors: {
  custom: {
    50: '#484b52',
    500: '#040a16',
    950: '#000000',
  },
}
SCSS
$custom: #040a16;
$custom-light: #484b52;
$custom-dark: #000000;
JSON
{
  "hex": "#040a16",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 22
  },
  "hsl": {
    "h": 220,
    "s": 69.231,
    "l": 5.098
  },
  "oklch": {
    "l": 0.14474,
    "c": 0.0289,
    "h": 259.1
  },
  "luminance": 0.00301
}

Semantic roles & 50–950 ramp

primary
#040A16
secondary
#57441E
accent
#B13CEC
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040A16

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

Preview Lab → · Contrast checker → · Palette generator →

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