#04042F#04042F

#04042F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.5% C 0.084 H 271.0°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#04042F
RGBrgb(4, 4, 47)
HSLhsl(240, 84%, 10%)
HSVhsv(240, 91%, 18%)
CMYKcmyk(91.5%, 91.5%, 0%, 81.6%)
CIE-LABlab(2.87, 12.47, -25.92)
CIE-LCHlch(2.87, 28.76, 295.69°)
OKLaboklab(15.53% 0.0015 -0.0841)
OKLCHoklch(15.53% 0.084 271)
XYZxyz(0.6064, 0.3178, 2.7182)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04042F #2F2F04
analogous
#04192F #04042F #19042F
triadic
#04042F #2F0404 #042F04
tetradic
#04042F #2F041A #2F2F04 #042F1A
square
#04042F #2F041A #2F2F04 #042F1A
split-complementary
#04042F #2F1A04 #1A2F04
monochromatic
#02021C #02021C #04042F #090967 #0E0EA0

Accessibility & contrast

On white

19.74
#04042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#04042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04042F
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04042F#FFFFFF#000000##FFFFFF
##04042F1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#00082E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04042f;
/* rgb */ color: rgb(4, 4, 47);
/* oklch */ color: oklch(15.5% 0.084 271.0);
Tailwind
colors: {
  custom: {
    50: '#4a4868',
    500: '#04042f',
    950: '#000000',
  },
}
SCSS
$custom: #04042f;
$custom-light: #4a4868;
$custom-dark: #000000;
JSON
{
  "hex": "#04042f",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 240,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.15531,
    "c": 0.08411,
    "h": 271
  },
  "luminance": 0.00318
}

Semantic roles & 50–950 ramp

primary
#04042F
secondary
#72721D
accent
#FB2DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04042F

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

Preview Lab → · Contrast checker → · Palette generator →

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