#040F16#040F16

#040F16 is a very dark, muted cyan. Relative luminance 0.004; OKLCH L 16.1% C 0.023 H 235.0°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#040F16
RGBrgb(4, 15, 22)
HSLhsl(203, 69%, 5%)
HSVhsv(203, 82%, 9%)
CMYKcmyk(81.8%, 31.8%, 0%, 91.4%)
CIE-LABlab(3.84, -1.58, -5.13)
CIE-LCHlch(3.84, 5.37, 252.85°)
OKLaboklab(16.09% -0.0133 -0.0191)
OKLCHoklch(16.09% 0.023 235)
XYZxyz(0.3657, 0.4254, 0.8217)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F16 #160B04
analogous
#041614 #040F16 #040616
triadic
#040F16 #16040F #0F1604
tetradic
#040F16 #140416 #160B04 #061604
square
#040F16 #140416 #160B04 #061604
split-complementary
#040F16 #160406 #161404
monochromatic
#05121A #05121A #05121A #0D324A #17567E

Accessibility & contrast

On white

19.35
#040F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F16
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F16#FFFFFF#000000##FFFFFF
##040F161.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C0F16
Deuteranopia (green-blind)
#090D16
Tritanopia (blue-blind)
#001111
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040f16;
/* rgb */ color: rgb(4, 15, 22);
/* oklch */ color: oklch(16.1% 0.023 235.0);
Tailwind
colors: {
  custom: {
    50: '#484e52',
    500: '#040f16',
    950: '#000000',
  },
}
SCSS
$custom: #040f16;
$custom-light: #484e52;
$custom-dark: #000000;
JSON
{
  "hex": "#040f16",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 22
  },
  "hsl": {
    "h": 203.333,
    "s": 69.231,
    "l": 5.098
  },
  "oklch": {
    "l": 0.16087,
    "c": 0.02327,
    "h": 235
  },
  "luminance": 0.00425
}

Semantic roles & 50–950 ramp

primary
#040F16
secondary
#57351E
accent
#803CEC
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040F16

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

Preview Lab → · Contrast checker → · Palette generator →

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