#04041F#04041F

#04041F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.4% C 0.059 H 275.0°. Best body text is #FFFFFF at 20.15:1 contrast (WCAG AA passes).

Color values

HEX#04041F
RGBrgb(4, 4, 31)
HSLhsl(240, 77%, 7%)
HSVhsv(240, 87%, 12%)
CMYKcmyk(87.1%, 87.1%, 0%, 87.8%)
CIE-LABlab(1.91, 5.72, -15.05)
CIE-LCHlch(1.91, 16.10, 290.81°)
OKLaboklab(13.35% 0.0051 -0.0585)
OKLCHoklch(13.35% 0.059 275)
XYZxyz(0.3407, 0.2115, 1.3189)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04041F #1F1F04
analogous
#04121F #04041F #12041F
triadic
#04041F #1F0404 #041F04
tetradic
#04041F #1F0412 #1F1F04 #041F12
square
#04041F #1F0412 #1F1F04 #041F12
split-complementary
#04041F #1F1204 #121F04
monochromatic
#03031B #03031B #04041F #0B0B55 #12128B

Accessibility & contrast

On white

20.15
#04041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04041F
20.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04041F#FFFFFF#000000##FFFFFF
##04041F1.0020.151.0420.15
#FFFFFF20.151.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00061E
Tritanopia (blue-blind)
#000A10
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04041f;
/* rgb */ color: rgb(4, 4, 31);
/* oklch */ color: oklch(13.4% 0.059 275.0);
Tailwind
colors: {
  custom: {
    50: '#48485a',
    500: '#04041f',
    950: '#000000',
  },
}
SCSS
$custom: #04041f;
$custom-light: #48485a;
$custom-dark: #000000;
JSON
{
  "hex": "#04041f",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 240,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13351,
    "c": 0.05874,
    "h": 275
  },
  "luminance": 0.00212
}

Semantic roles & 50–950 ramp

primary
#04041F
secondary
#62621D
accent
#F434F4
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #04041F

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

Preview Lab → · Contrast checker → · Palette generator →

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