#04041D#04041D

#04041D is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.1% C 0.055 H 275.6°. Best body text is #FFFFFF at 20.19:1 contrast (WCAG AA passes).

Color values

HEX#04041D
RGBrgb(4, 4, 29)
HSLhsl(240, 76%, 6%)
HSVhsv(240, 86%, 11%)
CMYKcmyk(86.2%, 86.2%, 0%, 88.6%)
CIE-LABlab(1.82, 5.07, -13.59)
CIE-LCHlch(1.82, 14.51, 290.47°)
OKLaboklab(13.1% 0.0054 -0.055)
OKLCHoklch(13.1% 0.055 275.6)
XYZxyz(0.3152, 0.2013, 1.1844)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041D #1D1D04
analogous
#04111D #04041D #11041D
triadic
#04041D #1D0404 #041D04
tetradic
#04041D #1D0411 #1D1D04 #041D11
square
#04041D #1D0411 #1D1D04 #041D11
split-complementary
#04041D #1D1104 #111D04
monochromatic
#04041B #04041B #04041D #0B0B53 #131389

Accessibility & contrast

On white

20.19
#04041D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04041D
20.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041D#FFFFFF#000000##FFFFFF
##04041D1.0020.191.0420.19
#FFFFFF20.191.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00081E
Deuteranopia (green-blind)
#00061C
Tritanopia (blue-blind)
#00090E
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04041d;
/* rgb */ color: rgb(4, 4, 29);
/* oklch */ color: oklch(13.1% 0.055 275.6);
Tailwind
colors: {
  custom: {
    50: '#484858',
    500: '#04041d',
    950: '#000000',
  },
}
SCSS
$custom: #04041d;
$custom-light: #484858;
$custom-dark: #000000;
JSON
{
  "hex": "#04041d",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 29
  },
  "hsl": {
    "h": 240,
    "s": 75.758,
    "l": 6.471
  },
  "oklch": {
    "l": 0.13101,
    "c": 0.05528,
    "h": 275.6
  },
  "luminance": 0.00201
}

Semantic roles & 50–950 ramp

primary
#04041D
secondary
#5F5F1D
accent
#F235F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04041D

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

Preview Lab → · Contrast checker → · Palette generator →

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