#040509#040509

#040509 is a very dark, near-neutral blue. Relative luminance 0.002; OKLCH L 11.6% C 0.012 H 270.7°. Best body text is #FFFFFF at 20.37:1 contrast (WCAG AA passes).

Color values

HEX#040509
RGBrgb(4, 5, 9)
HSLhsl(228, 38%, 3%)
HSVhsv(228, 56%, 4%)
CMYKcmyk(55.6%, 44.4%, 0%, 96.5%)
CIE-LABlab(1.39, 0.29, -1.60)
CIE-LCHlch(1.39, 1.63, 280.32°)
OKLaboklab(11.58% 0.0001 -0.0119)
OKLCHoklch(11.58% 0.012 270.7)
XYZxyz(0.1536, 0.1541, 0.2800)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040509 #090804
analogous
#040709 #040509 #050409
triadic
#040509 #090405 #050904
tetradic
#040509 #090407 #090804 #040905
square
#040509 #090407 #090804 #040905
split-complementary
#040509 #090504 #070904
monochromatic
#090C15 #090C15 #090C15 #171D33 #2A345E

Accessibility & contrast

On white

20.37
#040509 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040509
20.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040509#FFFFFF#000000##FFFFFF
##0405091.0020.371.0320.37
#FFFFFF20.371.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040509
Deuteranopia (green-blind)
#040509
Tritanopia (blue-blind)
#030606
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040509;
/* rgb */ color: rgb(4, 5, 9);
/* oklch */ color: oklch(11.6% 0.012 270.7);
Tailwind
colors: {
  custom: {
    50: '#48494b',
    500: '#040509',
    950: '#000000',
  },
}
SCSS
$custom: #040509;
$custom-light: #48494b;
$custom-dark: #000000;
JSON
{
  "hex": "#040509",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 9
  },
  "hsl": {
    "h": 228,
    "s": 38.462,
    "l": 2.549
  },
  "oklch": {
    "l": 0.11582,
    "c": 0.01188,
    "h": 270.7
  },
  "luminance": 0.00154
}

Semantic roles & 50–950 ramp

primary
#040509
secondary
#433D26
accent
#B759CE
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #040509

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

Preview Lab → · Contrast checker → · Palette generator →

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