#04041B#04041B

#04041B is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.9% C 0.052 H 276.3°. Best body text is #FFFFFF at 20.22:1 contrast (WCAG AA passes).

Color values

HEX#04041B
RGBrgb(4, 4, 27)
HSLhsl(240, 74%, 6%)
HSVhsv(240, 85%, 11%)
CMYKcmyk(85.2%, 85.2%, 0%, 89.4%)
CIE-LABlab(1.73, 4.47, -12.11)
CIE-LCHlch(1.73, 12.91, 290.24°)
OKLaboklab(12.86% 0.0057 -0.0514)
OKLCHoklch(12.86% 0.052 276.3)
XYZxyz(0.2913, 0.1918, 1.0584)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041B #1B1B04
analogous
#040F1B #04041B #0F041B
triadic
#04041B #1B0404 #041B04
tetradic
#04041B #1B040F #1B1B04 #041B0F
square
#04041B #1B040F #1B1B04 #041B0F
split-complementary
#04041B #1B0F04 #0F1B04
monochromatic
#04041B #04041B #04041B #0C0C50 #141486

Accessibility & contrast

On white

20.22
#04041B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04041B
20.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041B#FFFFFF#000000##FFFFFF
##04041B1.0020.221.0420.22
#FFFFFF20.221.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04041b;
/* rgb */ color: rgb(4, 4, 27);
/* oklch */ color: oklch(12.9% 0.052 276.3);
Tailwind
colors: {
  custom: {
    50: '#484857',
    500: '#04041b',
    950: '#000000',
  },
}
SCSS
$custom: #04041b;
$custom-light: #484857;
$custom-dark: #000000;
JSON
{
  "hex": "#04041b",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 27
  },
  "hsl": {
    "h": 240,
    "s": 74.194,
    "l": 6.078
  },
  "oklch": {
    "l": 0.12856,
    "c": 0.05173,
    "h": 276.3
  },
  "luminance": 0.00192
}

Semantic roles & 50–950 ramp

primary
#04041B
secondary
#5D5D1E
accent
#F137F1
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04041B

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

Preview Lab → · Contrast checker → · Palette generator →

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