#04042D#04042D

#04042D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.2% C 0.081 H 271.4°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#04042D
RGBrgb(4, 4, 45)
HSLhsl(240, 84%, 10%)
HSVhsv(240, 91%, 18%)
CMYKcmyk(91.1%, 91.1%, 0%, 82.4%)
CIE-LABlab(2.73, 11.47, -24.63)
CIE-LCHlch(2.73, 27.17, 294.96°)
OKLaboklab(15.25% 0.002 -0.0811)
OKLCHoklch(15.25% 0.081 271.4)
XYZxyz(0.5670, 0.3020, 2.5105)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04042D #2D2D04
analogous
#04192D #04042D #19042D
triadic
#04042D #2D0404 #042D04
tetradic
#04042D #2D0419 #2D2D04 #042D19
square
#04042D #2D0419 #2D2D04 #042D19
split-complementary
#04042D #2D1904 #192D04
monochromatic
#02021C #02021C #04042D #090965 #0E0E9D

Accessibility & contrast

On white

19.80
#04042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04042D
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04042D#FFFFFF#000000##FFFFFF
##04042D1.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#00082C
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04042d;
/* rgb */ color: rgb(4, 4, 45);
/* oklch */ color: oklch(15.2% 0.081 271.4);
Tailwind
colors: {
  custom: {
    50: '#494866',
    500: '#04042d',
    950: '#000000',
  },
}
SCSS
$custom: #04042d;
$custom-light: #494866;
$custom-dark: #000000;
JSON
{
  "hex": "#04042d",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 240,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15246,
    "c": 0.08112,
    "h": 271.4
  },
  "luminance": 0.00302
}

Semantic roles & 50–950 ramp

primary
#04042D
secondary
#70701D
accent
#FA2EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04042D

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

Preview Lab → · Contrast checker → · Palette generator →

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