#040A19#040A19

#040A19 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.7% C 0.035 H 262.6°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#040A19
RGBrgb(4, 10, 25)
HSLhsl(223, 72%, 6%)
HSVhsv(223, 84%, 10%)
CMYKcmyk(84%, 60%, 0%, 90.2%)
CIE-LABlab(2.83, 1.49, -8.89)
CIE-LCHlch(2.83, 9.01, 279.53°)
OKLaboklab(14.72% -0.0045 -0.0344)
OKLCHoklch(14.72% 0.035 262.6)
XYZxyz(0.3340, 0.3131, 0.9623)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A19 #191304
analogous
#041419 #040A19 #080419
triadic
#040A19 #19040A #0A1904
tetradic
#040A19 #190414 #191304 #041908
square
#040A19 #190414 #191304 #041908
split-complementary
#040A19 #190804 #141904
monochromatic
#040B1A #040B1A #040B1A #0C1F4E #153483

Accessibility & contrast

On white

19.76
#040A19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A19
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A19#FFFFFF#000000##FFFFFF
##040A191.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050B1A
Deuteranopia (green-blind)
#030919
Tritanopia (blue-blind)
#000D10
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040a19;
/* rgb */ color: rgb(4, 10, 25);
/* oklch */ color: oklch(14.7% 0.035 262.6);
Tailwind
colors: {
  custom: {
    50: '#484b55',
    500: '#040a19',
    950: '#000000',
  },
}
SCSS
$custom: #040a19;
$custom-light: #484b55;
$custom-dark: #000000;
JSON
{
  "hex": "#040a19",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 25
  },
  "hsl": {
    "h": 222.857,
    "s": 72.414,
    "l": 5.686
  },
  "oklch": {
    "l": 0.14722,
    "c": 0.03472,
    "h": 262.6
  },
  "luminance": 0.00313
}

Semantic roles & 50–950 ramp

primary
#040A19
secondary
#5B4A1E
accent
#BB39EF
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000103
muted
#777778

Preview Lab

Preview with #040A19

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

Preview Lab → · Contrast checker → · Palette generator →

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