#040C24#040C24

#040C24 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.3% C 0.052 H 264.8°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#040C24
RGBrgb(4, 12, 36)
HSLhsl(225, 80%, 8%)
HSVhsv(225, 89%, 14%)
CMYKcmyk(88.9%, 66.7%, 0%, 85.9%)
CIE-LABlab(3.76, 4.28, -16.14)
CIE-LCHlch(3.76, 16.70, 284.84°)
OKLaboklab(16.31% -0.0048 -0.0519)
OKLCHoklch(16.31% 0.052 264.8)
XYZxyz(0.4999, 0.4161, 1.7227)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C24 #241C04
analogous
#041C24 #040C24 #0C0424
triadic
#040C24 #24040C #0C2404
tetradic
#040C24 #24041C #241C04 #04240C
square
#040C24 #24041C #241C04 #04240C
split-complementary
#040C24 #240C04 #1C2404
monochromatic
#03091C #03091C #040C24 #0A1E5B #103192

Accessibility & contrast

On white

19.39
#040C24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040C24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C24
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C24#FFFFFF#000000##FFFFFF
##040C241.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010F25
Deuteranopia (green-blind)
#000C24
Tritanopia (blue-blind)
#001216
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040c24;
/* rgb */ color: rgb(4, 12, 36);
/* oklch */ color: oklch(16.3% 0.052 264.8);
Tailwind
colors: {
  custom: {
    50: '#484c5e',
    500: '#040c24',
    950: '#000000',
  },
}
SCSS
$custom: #040c24;
$custom-light: #484c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#040c24",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 36
  },
  "hsl": {
    "h": 225,
    "s": 80,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16315,
    "c": 0.05209,
    "h": 264.8
  },
  "luminance": 0.00416
}

Semantic roles & 50–950 ramp

primary
#040C24
secondary
#67541D
accent
#C531F6
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #040C24

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

Preview Lab → · Contrast checker → · Palette generator →

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