#040A13#040A13

#040A13 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.2% C 0.023 H 253.4°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#040A13
RGBrgb(4, 10, 19)
HSLhsl(216, 65%, 5%)
HSVhsv(216, 79%, 7%)
CMYKcmyk(78.9%, 47.4%, 0%, 92.5%)
CIE-LABlab(2.62, 0.02, -4.89)
CIE-LCHlch(2.62, 4.89, 270.27°)
OKLaboklab(14.25% -0.0066 -0.0222)
OKLCHoklch(14.25% 0.023 253.4)
XYZxyz(0.2761, 0.2899, 0.6574)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A13 #130D04
analogous
#041213 #040A13 #060413
triadic
#040A13 #13040A #0A1304
tetradic
#040A13 #130412 #130D04 #041306
square
#040A13 #130412 #130D04 #041306
split-complementary
#040A13 #130604 #121304
monochromatic
#050D19 #050D19 #050D19 #0F2546 #193F78

Accessibility & contrast

On white

19.85
#040A13 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A13
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A13#FFFFFF#000000##FFFFFF
##040A131.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070A13
Deuteranopia (green-blind)
#050913
Tritanopia (blue-blind)
#000C0D
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040a13;
/* rgb */ color: rgb(4, 10, 19);
/* oklch */ color: oklch(14.2% 0.023 253.4);
Tailwind
colors: {
  custom: {
    50: '#484b50',
    500: '#040a13',
    950: '#000000',
  },
}
SCSS
$custom: #040a13;
$custom-light: #484b50;
$custom-dark: #000000;
JSON
{
  "hex": "#040a13",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 19
  },
  "hsl": {
    "h": 216,
    "s": 65.217,
    "l": 4.51
  },
  "oklch": {
    "l": 0.14247,
    "c": 0.02317,
    "h": 253.4
  },
  "luminance": 0.0029
}

Semantic roles & 50–950 ramp

primary
#040A13
secondary
#543F1F
accent
#A540E8
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000102
muted
#777778

Preview Lab

Preview with #040A13

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

Preview Lab → · Contrast checker → · Palette generator →

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