#04060E#04060E

#04060E is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.4% C 0.020 H 268.6°. Best body text is #FFFFFF at 20.24:1 contrast (WCAG AA passes).

Color values

HEX#04060E
RGBrgb(4, 6, 14)
HSLhsl(228, 56%, 4%)
HSVhsv(228, 71%, 5%)
CMYKcmyk(71.4%, 57.1%, 0%, 94.5%)
CIE-LABlab(1.70, 0.65, -3.39)
CIE-LCHlch(1.70, 3.45, 280.88°)
OKLaboklab(12.4% -0.0005 -0.0202)
OKLCHoklch(12.4% 0.02 268.6)
XYZxyz(0.1944, 0.1878, 0.4414)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04060E #0E0C04
analogous
#040B0E #04060E #07040E
triadic
#04060E #0E0406 #060E04
tetradic
#04060E #0E040B #0E0C04 #040E07
square
#04060E #0E040B #0E0C04 #040E07
split-complementary
#04060E #0E0704 #0B0E04
monochromatic
#070A18 #070A18 #070A18 #121A3E #1F2F6D

Accessibility & contrast

On white

20.24
#04060E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04060E
20.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04060E#FFFFFF#000000##FFFFFF
##04060E1.0020.241.0420.24
#FFFFFF20.241.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04070E
Deuteranopia (green-blind)
#03060E
Tritanopia (blue-blind)
#020709
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04060e;
/* rgb */ color: rgb(4, 6, 14);
/* oklch */ color: oklch(12.4% 0.020 268.6);
Tailwind
colors: {
  custom: {
    50: '#48494d',
    500: '#04060e',
    950: '#000000',
  },
}
SCSS
$custom: #04060e;
$custom-light: #48494d;
$custom-dark: #000000;
JSON
{
  "hex": "#04060e",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 14
  },
  "hsl": {
    "h": 228,
    "s": 55.556,
    "l": 3.529
  },
  "oklch": {
    "l": 0.12398,
    "c": 0.02026,
    "h": 268.6
  },
  "luminance": 0.00188
}

Semantic roles & 50–950 ramp

primary
#04060E
secondary
#4C4422
accent
#C149DF
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04060E

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

Preview Lab → · Contrast checker → · Palette generator →

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