#040D18#040D18

#040D18 is a very dark, muted cyan. Relative luminance 0.004; OKLCH L 15.6% C 0.028 H 250.9°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#040D18
RGBrgb(4, 13, 24)
HSLhsl(213, 71%, 5%)
HSVhsv(213, 83%, 9%)
CMYKcmyk(83.3%, 45.8%, 0%, 90.6%)
CIE-LABlab(3.43, -0.08, -7.22)
CIE-LCHlch(3.43, 7.22, 269.35°)
OKLaboklab(15.58% -0.0093 -0.0268)
OKLCHoklch(15.58% 0.028 250.9)
XYZxyz(0.3588, 0.3796, 0.9183)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D18 #180F04
analogous
#041718 #040D18 #050418
triadic
#040D18 #18040D #0D1804
tetradic
#040D18 #180417 #180F04 #041805
square
#040D18 #180417 #180F04 #041805
split-complementary
#040D18 #180504 #171804
monochromatic
#040E1A #040E1A #040E1A #0D294C #154681

Accessibility & contrast

On white

19.52
#040D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D18
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D18#FFFFFF#000000##FFFFFF
##040D181.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080E18
Deuteranopia (green-blind)
#060B18
Tritanopia (blue-blind)
#001011
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040d18;
/* rgb */ color: rgb(4, 13, 24);
/* oklch */ color: oklch(15.6% 0.028 250.9);
Tailwind
colors: {
  custom: {
    50: '#484d54',
    500: '#040d18',
    950: '#000000',
  },
}
SCSS
$custom: #040d18;
$custom-light: #484d54;
$custom-dark: #000000;
JSON
{
  "hex": "#040d18",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 24
  },
  "hsl": {
    "h": 213,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.15575,
    "c": 0.02841,
    "h": 250.9
  },
  "luminance": 0.0038
}

Semantic roles & 50–950 ramp

primary
#040D18
secondary
#5A3F1E
accent
#9D3AEE
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040D18

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

Preview Lab → · Contrast checker → · Palette generator →

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