#04080F#04080F

#04080F is a very dark, near-neutral blue. Relative luminance 0.002; OKLCH L 13.3% C 0.018 H 255.3°. Best body text is #FFFFFF at 20.06:1 contrast (WCAG AA passes).

Color values

HEX#04080F
RGBrgb(4, 8, 15)
HSLhsl(218, 58%, 4%)
HSVhsv(218, 73%, 6%)
CMYKcmyk(73.3%, 46.7%, 0%, 94.1%)
CIE-LABlab(2.11, 0.03, -3.30)
CIE-LCHlch(2.11, 3.30, 270.49°)
OKLaboklab(13.27% -0.0047 -0.0178)
OKLCHoklch(13.27% 0.018 255.3)
XYZxyz(0.2231, 0.2340, 0.4852)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04080F #0F0B04
analogous
#040D0F #04080F #05040F
triadic
#04080F #0F0408 #080F04
tetradic
#04080F #0F040D #0F0B04 #040F05
square
#04080F #0F040D #0F0B04 #040F05
split-complementary
#04080F #0F0504 #0D0F04
monochromatic
#060D18 #060D18 #060D18 #11223F #1E3C70

Accessibility & contrast

On white

20.06
#04080F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04080F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04080F
20.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04080F#FFFFFF#000000##FFFFFF
##04080F1.0020.061.0520.06
#FFFFFF20.061.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06080F
Deuteranopia (green-blind)
#05070F
Tritanopia (blue-blind)
#02090A
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04080f;
/* rgb */ color: rgb(4, 8, 15);
/* oklch */ color: oklch(13.3% 0.018 255.3);
Tailwind
colors: {
  custom: {
    50: '#484a4e',
    500: '#04080f',
    950: '#000000',
  },
}
SCSS
$custom: #04080f;
$custom-light: #484a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#04080f",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 15
  },
  "hsl": {
    "h": 218.182,
    "s": 57.895,
    "l": 3.725
  },
  "oklch": {
    "l": 0.13269,
    "c": 0.01837,
    "h": 255.3
  },
  "luminance": 0.00234
}

Semantic roles & 50–950 ramp

primary
#04080F
secondary
#4E3E21
accent
#A947E1
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000101
muted
#777777

Preview Lab

Preview with #04080F

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

Preview Lab → · Contrast checker → · Palette generator →

#04080F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva