#04040F#04040F

#04040F is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.6% C 0.028 H 281.0°. Best body text is #FFFFFF at 20.40:1 contrast (WCAG AA passes).

Color values

HEX#04040F
RGBrgb(4, 4, 15)
HSLhsl(240, 58%, 4%)
HSVhsv(240, 73%, 6%)
CMYKcmyk(73.3%, 73.3%, 0%, 94.1%)
CIE-LABlab(1.33, 1.63, -4.44)
CIE-LCHlch(1.33, 4.73, 290.19°)
OKLaboklab(11.57% 0.0054 -0.0279)
OKLCHoklch(11.57% 0.028 281)
XYZxyz(0.1797, 0.1471, 0.4708)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04040F #0F0F04
analogous
#04090F #04040F #09040F
triadic
#04040F #0F0404 #040F04
tetradic
#04040F #0F0409 #0F0F04 #040F09
square
#04040F #0F0409 #0F0F04 #040F09
split-complementary
#04040F #0F0904 #090F04
monochromatic
#060618 #060618 #060618 #11113F #1E1E70

Accessibility & contrast

On white

20.40
#04040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04040F
20.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04040F#FFFFFF#000000##FFFFFF
##04040F1.0020.401.0320.40
#FFFFFF20.401.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02050F
Deuteranopia (green-blind)
#01050F
Tritanopia (blue-blind)
#020608
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #04040f;
/* rgb */ color: rgb(4, 4, 15);
/* oklch */ color: oklch(11.6% 0.028 281.0);
Tailwind
colors: {
  custom: {
    50: '#48484e',
    500: '#04040f',
    950: '#000000',
  },
}
SCSS
$custom: #04040f;
$custom-light: #48484e;
$custom-dark: #000000;
JSON
{
  "hex": "#04040f",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 240,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.11567,
    "c": 0.02843,
    "h": 281
  },
  "luminance": 0.00147
}

Semantic roles & 50–950 ramp

primary
#04040F
secondary
#4E4E21
accent
#E147E1
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04040F

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

Preview Lab → · Contrast checker → · Palette generator →

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