#04081C#04081C

#04081C is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.4% C 0.044 H 268.8°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#04081C
RGBrgb(4, 8, 28)
HSLhsl(230, 75%, 6%)
HSVhsv(230, 86%, 11%)
CMYKcmyk(85.7%, 71.4%, 0%, 89%)
CIE-LABlab(2.56, 3.16, -11.69)
CIE-LCHlch(2.56, 12.11, 285.13°)
OKLaboklab(14.38% -0.0009 -0.0441)
OKLCHoklch(14.38% 0.044 268.8)
XYZxyz(0.3464, 0.2833, 1.1348)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04081C #1C1804
analogous
#04141C #04081C #0C041C
triadic
#04081C #1C0408 #081C04
tetradic
#04081C #1C0414 #1C1804 #041C0C
square
#04081C #1C0414 #1C1804 #041C0C
split-complementary
#04081C #1C0C04 #141C04
monochromatic
#04081B #04081B #04081C #0C1752 #132787

Accessibility & contrast

On white

19.88
#04081C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04081C
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04081C#FFFFFF#000000##FFFFFF
##04081C1.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010B1D
Deuteranopia (green-blind)
#00081C
Tritanopia (blue-blind)
#000D10
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04081c;
/* rgb */ color: rgb(4, 8, 28);
/* oklch */ color: oklch(14.4% 0.044 268.8);
Tailwind
colors: {
  custom: {
    50: '#484a58',
    500: '#04081c',
    950: '#000000',
  },
}
SCSS
$custom: #04081c;
$custom-light: #484a58;
$custom-dark: #000000;
JSON
{
  "hex": "#04081c",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 28
  },
  "hsl": {
    "h": 230,
    "s": 75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.14379,
    "c": 0.04416,
    "h": 268.8
  },
  "luminance": 0.00283
}

Semantic roles & 50–950 ramp

primary
#04081C
secondary
#5E541D
accent
#D236F2
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000103
muted
#777778

Preview Lab

Preview with #04081C

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

Preview Lab → · Contrast checker → · Palette generator →

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