#04081D#04081D

#04081D is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.5% C 0.046 H 269.0°. Best body text is #FFFFFF at 19.86:1 contrast (WCAG AA passes).

Color values

HEX#04081D
RGBrgb(4, 8, 29)
HSLhsl(230, 76%, 6%)
HSVhsv(230, 86%, 11%)
CMYKcmyk(86.2%, 72.4%, 0%, 88.6%)
CIE-LABlab(2.60, 3.47, -12.42)
CIE-LCHlch(2.60, 12.89, 285.60°)
OKLaboklab(14.48% -0.0008 -0.046)
OKLCHoklch(14.48% 0.046 269)
XYZxyz(0.3586, 0.2882, 1.1989)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04081D #1D1904
analogous
#04151D #04081D #0D041D
triadic
#04081D #1D0408 #081D04
tetradic
#04081D #1D0415 #1D1904 #041D0D
square
#04081D #1D0415 #1D1904 #041D0D
split-complementary
#04081D #1D0D04 #151D04
monochromatic
#04071B #04071B #04081D #0B1753 #132689

Accessibility & contrast

On white

19.86
#04081D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04081D
19.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04081D#FFFFFF#000000##FFFFFF
##04081D1.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)
#010B1E
Deuteranopia (green-blind)
#00081D
Tritanopia (blue-blind)
#000D11
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04081d;
/* rgb */ color: rgb(4, 8, 29);
/* oklch */ color: oklch(14.5% 0.046 269.0);
Tailwind
colors: {
  custom: {
    50: '#484a58',
    500: '#04081d',
    950: '#000000',
  },
}
SCSS
$custom: #04081d;
$custom-light: #484a58;
$custom-dark: #000000;
JSON
{
  "hex": "#04081d",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 29
  },
  "hsl": {
    "h": 230.4,
    "s": 75.758,
    "l": 6.471
  },
  "oklch": {
    "l": 0.14479,
    "c": 0.04606,
    "h": 269
  },
  "luminance": 0.00288
}

Semantic roles & 50–950 ramp

primary
#04081D
secondary
#5F551D
accent
#D435F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04081D

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

Preview Lab → · Contrast checker → · Palette generator →

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