#040F18#040F18

#040F18 is a very dark, muted cyan. Relative luminance 0.004; OKLCH L 16.2% C 0.026 H 241.9°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#040F18
RGBrgb(4, 15, 24)
HSLhsl(207, 71%, 5%)
HSVhsv(207, 83%, 9%)
CMYKcmyk(83.3%, 37.5%, 0%, 90.6%)
CIE-LABlab(3.91, -1.07, -6.51)
CIE-LCHlch(3.91, 6.60, 260.63°)
OKLaboklab(16.22% -0.0124 -0.0231)
OKLCHoklch(16.22% 0.026 241.9)
XYZxyz(0.3857, 0.4334, 0.9273)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F18 #180D04
analogous
#041817 #040F18 #040518
triadic
#040F18 #18040F #0F1804
tetradic
#040F18 #170418 #180D04 #051804
square
#040F18 #170418 #180D04 #051804
split-complementary
#040F18 #180405 #181704
monochromatic
#04101A #04101A #04101A #0D304C #155181

Accessibility & contrast

On white

19.33
#040F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F18
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F18#FFFFFF#000000##FFFFFF
##040F181.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0F18
Deuteranopia (green-blind)
#080D18
Tritanopia (blue-blind)
#001112
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040f18;
/* rgb */ color: rgb(4, 15, 24);
/* oklch */ color: oklch(16.2% 0.026 241.9);
Tailwind
colors: {
  custom: {
    50: '#484e54',
    500: '#040f18',
    950: '#000000',
  },
}
SCSS
$custom: #040f18;
$custom-light: #484e54;
$custom-dark: #000000;
JSON
{
  "hex": "#040f18",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 24
  },
  "hsl": {
    "h": 207,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.16219,
    "c": 0.02622,
    "h": 241.9
  },
  "luminance": 0.00433
}

Semantic roles & 50–950 ramp

primary
#040F18
secondary
#5A391E
accent
#8B3AEE
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040F18

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

Preview Lab → · Contrast checker → · Palette generator →

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