#04081A#04081A

#04081A is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.2% C 0.040 H 268.3°. Best body text is #FFFFFF at 19.91:1 contrast (WCAG AA passes).

Color values

HEX#04081A
RGBrgb(4, 8, 26)
HSLhsl(229, 73%, 6%)
HSVhsv(229, 85%, 10%)
CMYKcmyk(84.6%, 69.2%, 0%, 89.8%)
CIE-LABlab(2.48, 2.58, -10.21)
CIE-LCHlch(2.48, 10.53, 284.16°)
OKLaboklab(14.18% -0.0012 -0.0403)
OKLCHoklch(14.18% 0.04 268.3)
XYZxyz(0.3233, 0.2740, 1.0129)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04081A #1A1604
analogous
#04131A #04081A #0B041A
triadic
#04081A #1A0408 #081A04
tetradic
#04081A #1A0413 #1A1604 #041A0B
square
#04081A #1A0413 #1A1604 #041A0B
split-complementary
#04081A #1A0B04 #131A04
monochromatic
#04081B #04081B #04081B #0C184F #142984

Accessibility & contrast

On white

19.91
#04081A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04081A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04081A
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04081A#FFFFFF#000000##FFFFFF
##04081A1.0019.911.0519.91
#FFFFFF19.911.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020A1B
Deuteranopia (green-blind)
#01081A
Tritanopia (blue-blind)
#000C0F
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04081a;
/* rgb */ color: rgb(4, 8, 26);
/* oklch */ color: oklch(14.2% 0.040 268.3);
Tailwind
colors: {
  custom: {
    50: '#484a56',
    500: '#04081a',
    950: '#000000',
  },
}
SCSS
$custom: #04081a;
$custom-light: #484a56;
$custom-dark: #000000;
JSON
{
  "hex": "#04081a",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 26
  },
  "hsl": {
    "h": 229.091,
    "s": 73.333,
    "l": 5.882
  },
  "oklch": {
    "l": 0.14183,
    "c": 0.04031,
    "h": 268.3
  },
  "luminance": 0.00274
}

Semantic roles & 50–950 ramp

primary
#04081A
secondary
#5C511E
accent
#CF38F0
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04081A

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

Preview Lab → · Contrast checker → · Palette generator →

#04081A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva