#040824#040824

#040824 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.2% C 0.059 H 269.5°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#040824
RGBrgb(4, 8, 36)
HSLhsl(233, 80%, 8%)
HSVhsv(233, 89%, 14%)
CMYKcmyk(88.9%, 77.8%, 0%, 85.9%)
CIE-LABlab(2.95, 5.92, -17.39)
CIE-LCHlch(2.95, 18.37, 288.81°)
OKLaboklab(15.23% -0.0005 -0.0588)
OKLCHoklch(15.23% 0.059 269.5)
XYZxyz(0.4552, 0.3268, 1.7078)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040824 #242004
analogous
#041824 #040824 #100424
triadic
#040824 #240408 #082404
tetradic
#040824 #240418 #242004 #042410
square
#040824 #240418 #242004 #042410
split-complementary
#040824 #241004 #182404
monochromatic
#03061C #03061C #040824 #0A145B #102092

Accessibility & contrast

On white

19.71
#040824 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040824 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040824
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040824#FFFFFF#000000##FFFFFF
##0408241.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C25
Deuteranopia (green-blind)
#000923
Tritanopia (blue-blind)
#000F14
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040824;
/* rgb */ color: rgb(4, 8, 36);
/* oklch */ color: oklch(15.2% 0.059 269.5);
Tailwind
colors: {
  custom: {
    50: '#484a5e',
    500: '#040824',
    950: '#000000',
  },
}
SCSS
$custom: #040824;
$custom-light: #484a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#040824",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 36
  },
  "hsl": {
    "h": 232.5,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.15231,
    "c": 0.05884,
    "h": 269.5
  },
  "luminance": 0.00327
}

Semantic roles & 50–950 ramp

primary
#040824
secondary
#675E1D
accent
#DE31F6
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040824

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

Preview Lab → · Contrast checker → · Palette generator →

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