#04040C#04040C

#04040C is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.3% C 0.022 H 282.3°. Best body text is #FFFFFF at 20.43:1 contrast (WCAG AA passes).

Color values

HEX#04040C
RGBrgb(4, 4, 12)
HSLhsl(240, 50%, 3%)
HSVhsv(240, 67%, 5%)
CMYKcmyk(66.7%, 66.7%, 0%, 95.3%)
CIE-LABlab(1.26, 1.13, -3.07)
CIE-LCHlch(1.26, 3.27, 290.15°)
OKLaboklab(11.31% 0.0047 -0.0215)
OKLCHoklch(11.31% 0.022 282.3)
XYZxyz(0.1598, 0.1392, 0.3662)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04040C #0C0C04
analogous
#04080C #04040C #08040C
triadic
#04040C #0C0404 #040C04
tetradic
#04040C #0C0408 #0C0C04 #040C08
square
#04040C #0C0408 #0C0C04 #040C08
split-complementary
#04040C #0C0804 #080C04
monochromatic
#080817 #080817 #080817 #13133A #232368

Accessibility & contrast

On white

20.43
#04040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04040C
20.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04040C#FFFFFF#000000##FFFFFF
##04040C1.0020.431.0320.43
#FFFFFF20.431.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04040c;
/* rgb */ color: rgb(4, 4, 12);
/* oklch */ color: oklch(11.3% 0.022 282.3);
Tailwind
colors: {
  custom: {
    50: '#48484c',
    500: '#04040c',
    950: '#000000',
  },
}
SCSS
$custom: #04040c;
$custom-light: #48484c;
$custom-dark: #000000;
JSON
{
  "hex": "#04040c",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 3.137
  },
  "oklch": {
    "l": 0.11305,
    "c": 0.02198,
    "h": 282.3
  },
  "luminance": 0.00139
}

Semantic roles & 50–950 ramp

primary
#04040C
secondary
#494923
accent
#DA4EDA
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04040C

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

Preview Lab → · Contrast checker → · Palette generator →

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