#040414#040414

#040414 is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.1% C 0.039 H 278.9°. Best body text is #FFFFFF at 20.34:1 contrast (WCAG AA passes).

Color values

HEX#040414
RGBrgb(4, 4, 20)
HSLhsl(240, 67%, 5%)
HSVhsv(240, 80%, 8%)
CMYKcmyk(80%, 80%, 0%, 92.2%)
CIE-LABlab(1.47, 2.65, -7.21)
CIE-LCHlch(1.47, 7.68, 290.18°)
OKLaboklab(12.06% 0.006 -0.0381)
OKLCHoklch(12.06% 0.039 278.9)
XYZxyz(0.2197, 0.1631, 0.6816)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040414 #141404
analogous
#040C14 #040414 #0C0414
triadic
#040414 #140404 #041404
tetradic
#040414 #14040C #141404 #04140C
square
#040414 #14040C #141404 #04140C
split-complementary
#040414 #140C04 #0C1404
monochromatic
#05051A #05051A #05051A #0E0E47 #18187A

Accessibility & contrast

On white

20.34
#040414 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040414 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040414
20.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040414#FFFFFF#000000##FFFFFF
##0404141.0020.341.0320.34
#FFFFFF20.341.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000615
Deuteranopia (green-blind)
#000514
Tritanopia (blue-blind)
#01070A
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040414;
/* rgb */ color: rgb(4, 4, 20);
/* oklch */ color: oklch(12.1% 0.039 278.9);
Tailwind
colors: {
  custom: {
    50: '#484851',
    500: '#040414',
    950: '#000000',
  },
}
SCSS
$custom: #040414;
$custom-light: #484851;
$custom-dark: #000000;
JSON
{
  "hex": "#040414",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 20
  },
  "hsl": {
    "h": 240,
    "s": 66.667,
    "l": 4.706
  },
  "oklch": {
    "l": 0.12062,
    "c": 0.03861,
    "h": 278.9
  },
  "luminance": 0.00163
}

Semantic roles & 50–950 ramp

primary
#040414
secondary
#55551F
accent
#EA3EEA
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040414

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

Preview Lab → · Contrast checker → · Palette generator →

#040414 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva