#040F17#040F17

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

Color values

HEX#040F17
RGBrgb(4, 15, 23)
HSLhsl(205, 70%, 5%)
HSVhsv(205, 83%, 9%)
CMYKcmyk(82.6%, 34.8%, 0%, 91%)
CIE-LABlab(3.88, -1.33, -5.81)
CIE-LCHlch(3.88, 5.96, 257.08°)
OKLaboklab(16.15% -0.0128 -0.0211)
OKLCHoklch(16.15% 0.025 238.7)
XYZxyz(0.3755, 0.4293, 0.8735)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F17 #170C04
analogous
#041715 #040F17 #040517
triadic
#040F17 #17040F #0F1704
tetradic
#040F17 #150417 #170C04 #051704
square
#040F17 #150417 #170C04 #051704
split-complementary
#040F17 #170405 #171504
monochromatic
#05111A #05111A #05111A #0D314B #16537F

Accessibility & contrast

On white

19.34
#040F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F17
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F17#FFFFFF#000000##FFFFFF
##040F171.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0F17
Deuteranopia (green-blind)
#090D17
Tritanopia (blue-blind)
#001112
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040f17;
/* rgb */ color: rgb(4, 15, 23);
/* oklch */ color: oklch(16.2% 0.025 238.7);
Tailwind
colors: {
  custom: {
    50: '#484e53',
    500: '#040f17',
    950: '#000000',
  },
}
SCSS
$custom: #040f17;
$custom-light: #484e53;
$custom-dark: #000000;
JSON
{
  "hex": "#040f17",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 205.263,
    "s": 70.37,
    "l": 5.294
  },
  "oklch": {
    "l": 0.16152,
    "c": 0.0247,
    "h": 238.7
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#040F17
secondary
#59371E
accent
#863BED
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040F17

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

Preview Lab → · Contrast checker → · Palette generator →

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