#04040B#04040B

#04040B is a very dark, near-neutral blue. Relative luminance 0.001; OKLCH L 11.2% C 0.020 H 282.7°. Best body text is #FFFFFF at 20.44:1 contrast (WCAG AA passes).

Color values

HEX#04040B
RGBrgb(4, 4, 11)
HSLhsl(240, 47%, 3%)
HSVhsv(240, 64%, 4%)
CMYKcmyk(63.6%, 63.6%, 0%, 95.7%)
CIE-LABlab(1.24, 0.98, -2.66)
CIE-LCHlch(1.24, 2.83, 290.20°)
OKLaboklab(11.22% 0.0044 -0.0193)
OKLCHoklch(11.22% 0.02 282.7)
XYZxyz(0.1539, 0.1368, 0.3348)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04040B #0B0B04
analogous
#04070B #04040B #07040B
triadic
#04040B #0B0404 #040B04
tetradic
#04040B #0B0407 #0B0B04 #040B07
square
#04040B #0B0407 #0B0B04 #040B07
split-complementary
#04040B #0B0704 #070B04
monochromatic
#080816 #080816 #080816 #141438 #252565

Accessibility & contrast

On white

20.44
#04040B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04040B
20.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04040B#FFFFFF#000000##FFFFFF
##04040B1.0020.441.0320.44
#FFFFFF20.441.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03050B
Deuteranopia (green-blind)
#02040B
Tritanopia (blue-blind)
#030506
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #04040b;
/* rgb */ color: rgb(4, 4, 11);
/* oklch */ color: oklch(11.2% 0.020 282.7);
Tailwind
colors: {
  custom: {
    50: '#48484c',
    500: '#04040b',
    950: '#000000',
  },
}
SCSS
$custom: #04040b;
$custom-light: #48484c;
$custom-dark: #000000;
JSON
{
  "hex": "#04040b",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 11
  },
  "hsl": {
    "h": 240,
    "s": 46.667,
    "l": 2.941
  },
  "oklch": {
    "l": 0.11223,
    "c": 0.01978,
    "h": 282.7
  },
  "luminance": 0.00137
}

Semantic roles & 50–950 ramp

primary
#04040B
secondary
#474724
accent
#D651D6
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04040B

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

Preview Lab → · Contrast checker → · Palette generator →

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