#04041C#04041C

#04041C is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.0% C 0.054 H 275.9°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#04041C
RGBrgb(4, 4, 28)
HSLhsl(240, 75%, 6%)
HSVhsv(240, 86%, 11%)
CMYKcmyk(85.7%, 85.7%, 0%, 89%)
CIE-LABlab(1.77, 4.76, -12.85)
CIE-LCHlch(1.77, 13.71, 290.33°)
OKLaboklab(12.98% 0.0055 -0.0532)
OKLCHoklch(12.98% 0.054 275.9)
XYZxyz(0.3030, 0.1965, 1.1203)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041C #1C1C04
analogous
#04101C #04041C #10041C
triadic
#04041C #1C0404 #041C04
tetradic
#04041C #1C0410 #1C1C04 #041C10
square
#04041C #1C0410 #1C1C04 #041C10
split-complementary
#04041C #1C1004 #101C04
monochromatic
#04041B #04041B #04041C #0C0C52 #131387

Accessibility & contrast

On white

20.21
#04041C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04041C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04041C
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041C#FFFFFF#000000##FFFFFF
##04041C1.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071D
Deuteranopia (green-blind)
#00061C
Tritanopia (blue-blind)
#00090E
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04041c;
/* rgb */ color: rgb(4, 4, 28);
/* oklch */ color: oklch(13.0% 0.054 275.9);
Tailwind
colors: {
  custom: {
    50: '#484858',
    500: '#04041c',
    950: '#000000',
  },
}
SCSS
$custom: #04041c;
$custom-light: #484858;
$custom-dark: #000000;
JSON
{
  "hex": "#04041c",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 28
  },
  "hsl": {
    "h": 240,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.12977,
    "c": 0.05352,
    "h": 275.9
  },
  "luminance": 0.00196
}

Semantic roles & 50–950 ramp

primary
#04041C
secondary
#5E5E1D
accent
#F236F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04041C

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

Preview Lab → · Contrast checker → · Palette generator →

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