#040E18#040E18

#040E18 is a very dark, muted cyan. Relative luminance 0.004; OKLCH L 15.9% C 0.027 H 246.5°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#040E18
RGBrgb(4, 14, 24)
HSLhsl(210, 71%, 5%)
HSVhsv(210, 83%, 9%)
CMYKcmyk(83.3%, 41.7%, 0%, 90.6%)
CIE-LABlab(3.67, -0.57, -6.88)
CIE-LCHlch(3.67, 6.90, 265.30°)
OKLaboklab(15.9% -0.0108 -0.025)
OKLCHoklch(15.9% 0.027 246.5)
XYZxyz(0.3719, 0.4058, 0.9227)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E18 #180E04
analogous
#041818 #040E18 #040418
triadic
#040E18 #18040E #0E1804
tetradic
#040E18 #180418 #180E04 #041804
square
#040E18 #180418 #180E04 #041804
split-complementary
#040E18 #180404 #181804
monochromatic
#040F1A #040F1A #040F1A #0D2D4C #154B81

Accessibility & contrast

On white

19.42
#040E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E18
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E18#FFFFFF#000000##FFFFFF
##040E181.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A0E18
Deuteranopia (green-blind)
#070C18
Tritanopia (blue-blind)
#001011
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040e18;
/* rgb */ color: rgb(4, 14, 24);
/* oklch */ color: oklch(15.9% 0.027 246.5);
Tailwind
colors: {
  custom: {
    50: '#484d54',
    500: '#040e18',
    950: '#000000',
  },
}
SCSS
$custom: #040e18;
$custom-light: #484d54;
$custom-dark: #000000;
JSON
{
  "hex": "#040e18",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 24
  },
  "hsl": {
    "h": 210,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.15895,
    "c": 0.02723,
    "h": 246.5
  },
  "luminance": 0.00406
}

Semantic roles & 50–950 ramp

primary
#040E18
secondary
#5A3C1E
accent
#943AEE
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040E18

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

Preview Lab → · Contrast checker → · Palette generator →

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