#040A24#040A24

#040A24 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.8% C 0.055 H 267.3°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#040A24
RGBrgb(4, 10, 36)
HSLhsl(229, 80%, 8%)
HSVhsv(229, 89%, 14%)
CMYKcmyk(88.9%, 72.2%, 0%, 85.9%)
CIE-LABlab(3.34, 5.12, -16.78)
CIE-LCHlch(3.34, 17.55, 286.97°)
OKLaboklab(15.78% -0.0026 -0.0553)
OKLCHoklch(15.78% 0.055 267.3)
XYZxyz(0.4769, 0.3702, 1.7150)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A24 #241E04
analogous
#041A24 #040A24 #0E0424
triadic
#040A24 #24040A #0A2404
tetradic
#040A24 #24041A #241E04 #04240E
square
#040A24 #24041A #241E04 #04240E
split-complementary
#040A24 #240E04 #1A2404
monochromatic
#03081C #03081C #040A24 #0A195B #102992

Accessibility & contrast

On white

19.55
#040A24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040A24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A24
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A24#FFFFFF#000000##FFFFFF
##040A241.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E25
Deuteranopia (green-blind)
#000B23
Tritanopia (blue-blind)
#001015
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a24;
/* rgb */ color: rgb(4, 10, 36);
/* oklch */ color: oklch(15.8% 0.055 267.3);
Tailwind
colors: {
  custom: {
    50: '#484b5e',
    500: '#040a24',
    950: '#000000',
  },
}
SCSS
$custom: #040a24;
$custom-light: #484b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#040a24",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 36
  },
  "hsl": {
    "h": 228.75,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.15777,
    "c": 0.05537,
    "h": 267.3
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#040A24
secondary
#67591D
accent
#D131F6
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040A24

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

Preview Lab → · Contrast checker → · Palette generator →

#040A24 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva