#04041A#04041A

#04041A is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.7% C 0.050 H 276.6°. Best body text is #FFFFFF at 20.24:1 contrast (WCAG AA passes).

Color values

HEX#04041A
RGBrgb(4, 4, 26)
HSLhsl(240, 73%, 6%)
HSVhsv(240, 85%, 10%)
CMYKcmyk(84.6%, 84.6%, 0%, 89.8%)
CIE-LABlab(1.69, 4.18, -11.36)
CIE-LCHlch(1.69, 12.10, 290.19°)
OKLaboklab(12.74% 0.0058 -0.0496)
OKLCHoklch(12.74% 0.05 276.6)
XYZxyz(0.2799, 0.1872, 0.9985)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041A #1A1A04
analogous
#040F1A #04041A #0F041A
triadic
#04041A #1A0404 #041A04
tetradic
#04041A #1A040F #1A1A04 #041A0F
square
#04041A #1A040F #1A1A04 #041A0F
split-complementary
#04041A #1A0F04 #0F1A04
monochromatic
#04041B #04041B #04041B #0C0C4F #141484

Accessibility & contrast

On white

20.24
#04041A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04041A
20.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041A#FFFFFF#000000##FFFFFF
##04041A1.0020.241.0420.24
#FFFFFF20.241.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071B
Deuteranopia (green-blind)
#00051A
Tritanopia (blue-blind)
#00080D
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04041a;
/* rgb */ color: rgb(4, 4, 26);
/* oklch */ color: oklch(12.7% 0.050 276.6);
Tailwind
colors: {
  custom: {
    50: '#484856',
    500: '#04041a',
    950: '#000000',
  },
}
SCSS
$custom: #04041a;
$custom-light: #484856;
$custom-dark: #000000;
JSON
{
  "hex": "#04041a",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 26
  },
  "hsl": {
    "h": 240,
    "s": 73.333,
    "l": 5.882
  },
  "oklch": {
    "l": 0.12737,
    "c": 0.04992,
    "h": 276.6
  },
  "luminance": 0.00187
}

Semantic roles & 50–950 ramp

primary
#04041A
secondary
#5C5C1E
accent
#F038F0
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04041A

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

Preview Lab → · Contrast checker → · Palette generator →

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