#04081E#04081E

#04081E is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.6% C 0.048 H 269.2°. Best body text is #FFFFFF at 19.84:1 contrast (WCAG AA passes).

Color values

HEX#04081E
RGBrgb(4, 8, 30)
HSLhsl(231, 76%, 7%)
HSVhsv(231, 87%, 12%)
CMYKcmyk(86.7%, 73.3%, 0%, 88.2%)
CIE-LABlab(2.65, 3.79, -13.15)
CIE-LCHlch(2.65, 13.68, 286.08°)
OKLaboklab(14.58% -0.0007 -0.0479)
OKLCHoklch(14.58% 0.048 269.2)
XYZxyz(0.3712, 0.2932, 1.2651)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04081E #1E1A04
analogous
#04151E #04081E #0D041E
triadic
#04081E #1E0408 #081E04
tetradic
#04081E #1E0415 #1E1A04 #041E0D
square
#04081E #1E0415 #1E1A04 #041E0D
split-complementary
#04081E #1E0D04 #151E04
monochromatic
#04071B #04071B #04081E #0B1654 #12258A

Accessibility & contrast

On white

19.84
#04081E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04081E
19.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04081E#FFFFFF#000000##FFFFFF
##04081E1.0019.841.0619.84
#FFFFFF19.841.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B1F
Deuteranopia (green-blind)
#00091E
Tritanopia (blue-blind)
#000D11
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04081e;
/* rgb */ color: rgb(4, 8, 30);
/* oklch */ color: oklch(14.6% 0.048 269.2);
Tailwind
colors: {
  custom: {
    50: '#484a59',
    500: '#04081e',
    950: '#000000',
  },
}
SCSS
$custom: #04081e;
$custom-light: #484a59;
$custom-dark: #000000;
JSON
{
  "hex": "#04081e",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 30
  },
  "hsl": {
    "h": 230.769,
    "s": 76.471,
    "l": 6.667
  },
  "oklch": {
    "l": 0.14581,
    "c": 0.04794,
    "h": 269.2
  },
  "luminance": 0.00293
}

Semantic roles & 50–950 ramp

primary
#04081E
secondary
#61561D
accent
#D635F3
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04081E

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

Preview Lab → · Contrast checker → · Palette generator →

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