#040A1A#040A1A

#040A1A is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.8% C 0.037 H 263.4°. Best body text is #FFFFFF at 19.75:1 contrast (WCAG AA passes).

Color values

HEX#040A1A
RGBrgb(4, 10, 26)
HSLhsl(224, 73%, 6%)
HSVhsv(224, 85%, 10%)
CMYKcmyk(84.6%, 61.5%, 0%, 89.8%)
CIE-LABlab(2.87, 1.77, -9.63)
CIE-LCHlch(2.87, 9.80, 280.44°)
OKLaboklab(14.81% -0.0042 -0.0364)
OKLCHoklch(14.81% 0.037 263.4)
XYZxyz(0.3450, 0.3174, 1.0202)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A1A #1A1404
analogous
#04151A #040A1A #09041A
triadic
#040A1A #1A040A #0A1A04
tetradic
#040A1A #1A0415 #1A1404 #041A09
square
#040A1A #1A0415 #1A1404 #041A09
split-complementary
#040A1A #1A0904 #151A04
monochromatic
#040A1B #040A1B #040A1B #0C1E4F #143384

Accessibility & contrast

On white

19.75
#040A1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A1A
19.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A1A#FFFFFF#000000##FFFFFF
##040A1A1.0019.751.0619.75
#FFFFFF19.751.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040C1B
Deuteranopia (green-blind)
#02091A
Tritanopia (blue-blind)
#000E10
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040a1a;
/* rgb */ color: rgb(4, 10, 26);
/* oklch */ color: oklch(14.8% 0.037 263.4);
Tailwind
colors: {
  custom: {
    50: '#484b56',
    500: '#040a1a',
    950: '#000000',
  },
}
SCSS
$custom: #040a1a;
$custom-light: #484b56;
$custom-dark: #000000;
JSON
{
  "hex": "#040a1a",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 26
  },
  "hsl": {
    "h": 223.636,
    "s": 73.333,
    "l": 5.882
  },
  "oklch": {
    "l": 0.14808,
    "c": 0.03665,
    "h": 263.4
  },
  "luminance": 0.00317
}

Semantic roles & 50–950 ramp

primary
#040A1A
secondary
#5C4B1E
accent
#BE38F0
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #040A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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