#04042B#04042B

#04042B is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.0% C 0.078 H 271.8°. Best body text is #FFFFFF at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#04042B
RGBrgb(4, 4, 43)
HSLhsl(240, 83%, 9%)
HSVhsv(240, 91%, 17%)
CMYKcmyk(90.7%, 90.7%, 0%, 83.1%)
CIE-LABlab(2.59, 10.51, -23.33)
CIE-LCHlch(2.59, 25.59, 294.25°)
OKLaboklab(14.96% 0.0025 -0.0781)
OKLCHoklch(14.96% 0.078 271.8)
XYZxyz(0.5294, 0.2870, 2.3125)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04042B #2B2B04
analogous
#04182B #04042B #18042B
triadic
#04042B #2B0404 #042B04
tetradic
#04042B #2B0418 #2B2B04 #042B18
square
#04042B #2B0418 #2B2B04 #042B18
split-complementary
#04042B #2B1804 #182B04
monochromatic
#03031C #03031C #04042B #090963 #0E0E9B

Accessibility & contrast

On white

19.86
#04042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04042B
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04042B#FFFFFF#000000##FFFFFF
##04042B1.0019.861.0619.86
#FFFFFF19.861.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#000F16
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04042b;
/* rgb */ color: rgb(4, 4, 43);
/* oklch */ color: oklch(15.0% 0.078 271.8);
Tailwind
colors: {
  custom: {
    50: '#494864',
    500: '#04042b',
    950: '#000000',
  },
}
SCSS
$custom: #04042b;
$custom-light: #494864;
$custom-dark: #000000;
JSON
{
  "hex": "#04042b",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 240,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.14964,
    "c": 0.0781,
    "h": 271.8
  },
  "luminance": 0.00287
}

Semantic roles & 50–950 ramp

primary
#04042B
secondary
#6E6E1D
accent
#F92EF9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04042B

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

Preview Lab → · Contrast checker → · Palette generator →

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