#040C16#040C16

#040C16 is a very dark, muted cyan. Relative luminance 0.003; OKLCH L 15.1% C 0.026 H 250.8°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#040C16
RGBrgb(4, 12, 22)
HSLhsl(213, 69%, 5%)
HSVhsv(213, 82%, 9%)
CMYKcmyk(81.8%, 45.5%, 0%, 91.4%)
CIE-LABlab(3.13, -0.13, -6.17)
CIE-LCHlch(3.13, 6.17, 268.77°)
OKLaboklab(15.11% -0.0086 -0.0246)
OKLCHoklch(15.11% 0.026 250.8)
XYZxyz(0.3263, 0.3467, 0.8086)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C16 #160E04
analogous
#041516 #040C16 #050416
triadic
#040C16 #16040C #0C1604
tetradic
#040C16 #160415 #160E04 #041605
square
#040C16 #160415 #160E04 #041605
split-complementary
#040C16 #160504 #151604
monochromatic
#050E1A #050E1A #050E1A #0D284A #17447E

Accessibility & contrast

On white

19.64
#040C16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040C16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C16
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C16#FFFFFF#000000##FFFFFF
##040C161.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080C16
Deuteranopia (green-blind)
#060B16
Tritanopia (blue-blind)
#000E10
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040c16;
/* rgb */ color: rgb(4, 12, 22);
/* oklch */ color: oklch(15.1% 0.026 250.8);
Tailwind
colors: {
  custom: {
    50: '#484c52',
    500: '#040c16',
    950: '#000000',
  },
}
SCSS
$custom: #040c16;
$custom-light: #484c52;
$custom-dark: #000000;
JSON
{
  "hex": "#040c16",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 22
  },
  "hsl": {
    "h": 213.333,
    "s": 69.231,
    "l": 5.098
  },
  "oklch": {
    "l": 0.15109,
    "c": 0.0261,
    "h": 250.8
  },
  "luminance": 0.00347
}

Semantic roles & 50–950 ramp

primary
#040C16
secondary
#573E1E
accent
#9E3CEC
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040C16

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

Preview Lab → · Contrast checker → · Palette generator →

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