#040B18#040B18

#040B18 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.9% C 0.031 H 258.4°. Best body text is #FFFFFF at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#040B18
RGBrgb(4, 11, 24)
HSLhsl(219, 71%, 5%)
HSVhsv(219, 83%, 9%)
CMYKcmyk(83.3%, 54.2%, 0%, 90.6%)
CIE-LABlab(2.99, 0.82, -7.86)
CIE-LCHlch(2.99, 7.90, 275.92°)
OKLaboklab(14.95% -0.0063 -0.0306)
OKLCHoklch(14.95% 0.031 258.4)
XYZxyz(0.3346, 0.3311, 0.9102)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B18 #181104
analogous
#041518 #040B18 #070418
triadic
#040B18 #18040B #0B1804
tetradic
#040B18 #180415 #181104 #041807
square
#040B18 #180415 #181104 #041807
split-complementary
#040B18 #180704 #151804
monochromatic
#040C1A #040C1A #040C1A #0D234C #153B81

Accessibility & contrast

On white

19.70
#040B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B18
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B18#FFFFFF#000000##FFFFFF
##040B181.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#060C19
Deuteranopia (green-blind)
#040A18
Tritanopia (blue-blind)
#000E10
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040b18;
/* rgb */ color: rgb(4, 11, 24);
/* oklch */ color: oklch(14.9% 0.031 258.4);
Tailwind
colors: {
  custom: {
    50: '#484c54',
    500: '#040b18',
    950: '#000000',
  },
}
SCSS
$custom: #040b18;
$custom-light: #484c54;
$custom-dark: #000000;
JSON
{
  "hex": "#040b18",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 24
  },
  "hsl": {
    "h": 219,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.14945,
    "c": 0.03121,
    "h": 258.4
  },
  "luminance": 0.00331
}

Semantic roles & 50–950 ramp

primary
#040B18
secondary
#5A451E
accent
#AF3AEE
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040B18

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

Preview Lab → · Contrast checker → · Palette generator →

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