#040A18#040A18

#040A18 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.6% C 0.033 H 261.6°. Best body text is #FFFFFF at 19.78:1 contrast (WCAG AA passes).

Color values

HEX#040A18
RGBrgb(4, 10, 24)
HSLhsl(222, 71%, 5%)
HSVhsv(222, 83%, 9%)
CMYKcmyk(83.3%, 58.3%, 0%, 90.6%)
CIE-LABlab(2.79, 1.22, -8.16)
CIE-LCHlch(2.79, 8.25, 278.54°)
OKLaboklab(14.64% -0.0048 -0.0324)
OKLCHoklch(14.64% 0.033 261.6)
XYZxyz(0.3234, 0.3088, 0.9065)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A18 #181204
analogous
#041418 #040A18 #080418
triadic
#040A18 #18040A #0A1804
tetradic
#040A18 #180414 #181204 #041808
square
#040A18 #180414 #181204 #041808
split-complementary
#040A18 #180804 #141804
monochromatic
#040B1A #040B1A #040B1A #0D204C #153681

Accessibility & contrast

On white

19.78
#040A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A18
19.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A18#FFFFFF#000000##FFFFFF
##040A181.0019.781.0619.78
#FFFFFF19.781.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050B19
Deuteranopia (green-blind)
#030918
Tritanopia (blue-blind)
#000D0F
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040a18;
/* rgb */ color: rgb(4, 10, 24);
/* oklch */ color: oklch(14.6% 0.033 261.6);
Tailwind
colors: {
  custom: {
    50: '#484b54',
    500: '#040a18',
    950: '#000000',
  },
}
SCSS
$custom: #040a18;
$custom-light: #484b54;
$custom-dark: #000000;
JSON
{
  "hex": "#040a18",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 24
  },
  "hsl": {
    "h": 222,
    "s": 71.429,
    "l": 5.49
  },
  "oklch": {
    "l": 0.14637,
    "c": 0.03278,
    "h": 261.6
  },
  "luminance": 0.00309
}

Semantic roles & 50–950 ramp

primary
#040A18
secondary
#5A481E
accent
#B83AEE
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040A18

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

Preview Lab → · Contrast checker → · Palette generator →

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