#04040A#04040A

#04040A is a very dark, near-neutral blue. Relative luminance 0.001; OKLCH L 11.1% C 0.018 H 283.2°. Best body text is #FFFFFF at 20.45:1 contrast (WCAG AA passes).

Color values

HEX#04040A
RGBrgb(4, 4, 10)
HSLhsl(240, 43%, 3%)
HSVhsv(240, 60%, 4%)
CMYKcmyk(60%, 60%, 0%, 96.1%)
CIE-LABlab(1.22, 0.83, -2.27)
CIE-LCHlch(1.22, 2.42, 290.18°)
OKLaboklab(11.15% 0.004 -0.0171)
OKLCHoklch(11.15% 0.018 283.2)
XYZxyz(0.1483, 0.1346, 0.3053)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04040A #0A0A04
analogous
#04070A #04040A #07040A
triadic
#04040A #0A0404 #040A04
tetradic
#04040A #0A0407 #0A0A04 #040A07
square
#04040A #0A0407 #0A0A04 #040A07
split-complementary
#04040A #0A0704 #070A04
monochromatic
#090916 #090916 #090916 #151536 #272761

Accessibility & contrast

On white

20.45
#04040A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#04040A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04040A
20.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04040A#FFFFFF#000000##FFFFFF
##04040A1.0020.451.0320.45
#FFFFFF20.451.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03050A
Deuteranopia (green-blind)
#03040A
Tritanopia (blue-blind)
#030506
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #04040a;
/* rgb */ color: rgb(4, 4, 10);
/* oklch */ color: oklch(11.1% 0.018 283.2);
Tailwind
colors: {
  custom: {
    50: '#48484b',
    500: '#04040a',
    950: '#000000',
  },
}
SCSS
$custom: #04040a;
$custom-light: #48484b;
$custom-dark: #000000;
JSON
{
  "hex": "#04040a",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 10
  },
  "hsl": {
    "h": 240,
    "s": 42.857,
    "l": 2.745
  },
  "oklch": {
    "l": 0.11146,
    "c": 0.01754,
    "h": 283.2
  },
  "luminance": 0.00135
}

Semantic roles & 50–950 ramp

primary
#04040A
secondary
#454525
accent
#D355D3
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04040A

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

Preview Lab → · Contrast checker → · Palette generator →

#04040A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva