#04041E#04041E

#04041E is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.2% C 0.057 H 275.3°. Best body text is #FFFFFF at 20.17:1 contrast (WCAG AA passes).

Color values

HEX#04041E
RGBrgb(4, 4, 30)
HSLhsl(240, 76%, 7%)
HSVhsv(240, 87%, 12%)
CMYKcmyk(86.7%, 86.7%, 0%, 88.2%)
CIE-LABlab(1.86, 5.39, -14.32)
CIE-LCHlch(1.86, 15.31, 290.63°)
OKLaboklab(13.23% 0.0053 -0.0568)
OKLCHoklch(13.23% 0.057 275.3)
XYZxyz(0.3278, 0.2064, 1.2506)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041E #1E1E04
analogous
#04111E #04041E #11041E
triadic
#04041E #1E0404 #041E04
tetradic
#04041E #1E0411 #1E1E04 #041E11
square
#04041E #1E0411 #1E1E04 #041E11
split-complementary
#04041E #1E1104 #111E04
monochromatic
#04041B #04041B #04041E #0B0B54 #12128A

Accessibility & contrast

On white

20.17
#04041E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04041E
20.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041E#FFFFFF#000000##FFFFFF
##04041E1.0020.171.0420.17
#FFFFFF20.171.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00081F
Deuteranopia (green-blind)
#00061D
Tritanopia (blue-blind)
#000A0F
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04041e;
/* rgb */ color: rgb(4, 4, 30);
/* oklch */ color: oklch(13.2% 0.057 275.3);
Tailwind
colors: {
  custom: {
    50: '#484859',
    500: '#04041e',
    950: '#000000',
  },
}
SCSS
$custom: #04041e;
$custom-light: #484859;
$custom-dark: #000000;
JSON
{
  "hex": "#04041e",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 30
  },
  "hsl": {
    "h": 240,
    "s": 76.471,
    "l": 6.667
  },
  "oklch": {
    "l": 0.13225,
    "c": 0.05701,
    "h": 275.3
  },
  "luminance": 0.00206
}

Semantic roles & 50–950 ramp

primary
#04041E
secondary
#61611D
accent
#F335F3
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04041E

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

Preview Lab → · Contrast checker → · Palette generator →

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