#04060A#04060A

#04060A is a very dark, near-neutral blue. Relative luminance 0.002; OKLCH L 12.1% C 0.012 H 258.7°. Best body text is #FFFFFF at 20.28:1 contrast (WCAG AA passes).

Color values

HEX#04060A
RGBrgb(4, 6, 10)
HSLhsl(220, 43%, 3%)
HSVhsv(220, 60%, 4%)
CMYKcmyk(60%, 40%, 0%, 96.1%)
CIE-LABlab(1.61, 0.03, -1.70)
CIE-LCHlch(1.61, 1.70, 271.13°)
OKLaboklab(12.12% -0.0023 -0.0115)
OKLCHoklch(12.12% 0.012 258.7)
XYZxyz(0.1700, 0.1780, 0.3125)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04060A #0A0804
analogous
#04090A #04060A #05040A
triadic
#04060A #0A0406 #060A04
tetradic
#04060A #0A0409 #0A0804 #040A05
square
#04060A #0A0409 #0A0804 #040A05
split-complementary
#04060A #0A0504 #090A04
monochromatic
#090D16 #090D16 #090D16 #152036 #273A61

Accessibility & contrast

On white

20.28
#04060A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04060A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04060A
20.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04060A#FFFFFF#000000##FFFFFF
##04060A1.0020.281.0420.28
#FFFFFF20.281.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05060A
Deuteranopia (green-blind)
#04060A
Tritanopia (blue-blind)
#030707
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04060a;
/* rgb */ color: rgb(4, 6, 10);
/* oklch */ color: oklch(12.1% 0.012 258.7);
Tailwind
colors: {
  custom: {
    50: '#48494b',
    500: '#04060a',
    950: '#000000',
  },
}
SCSS
$custom: #04060a;
$custom-light: #48494b;
$custom-dark: #000000;
JSON
{
  "hex": "#04060a",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 10
  },
  "hsl": {
    "h": 220,
    "s": 42.857,
    "l": 2.745
  },
  "oklch": {
    "l": 0.12118,
    "c": 0.01178,
    "h": 258.7
  },
  "luminance": 0.00178
}

Semantic roles & 50–950 ramp

primary
#04060A
secondary
#453A25
accent
#A955D3
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04060A

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

Preview Lab → · Contrast checker → · Palette generator →

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