#040D26#040D26

#040D26 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 16.8% C 0.054 H 264.1°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#040D26
RGBrgb(4, 13, 38)
HSLhsl(224, 81%, 8%)
HSVhsv(224, 89%, 15%)
CMYKcmyk(89.5%, 65.8%, 0%, 85.1%)
CIE-LABlab(4.10, 4.62, -17.16)
CIE-LCHlch(4.10, 17.77, 285.06°)
OKLaboklab(16.79% -0.0056 -0.0538)
OKLCHoklch(16.79% 0.054 264.1)
XYZxyz(0.5437, 0.4535, 1.8922)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D26 #261D04
analogous
#041E26 #040D26 #0C0426
triadic
#040D26 #26040D #0D2604
tetradic
#040D26 #26041E #261D04 #04260C
square
#040D26 #26041E #261D04 #04260C
split-complementary
#040D26 #260C04 #1E2604
monochromatic
#03091C #03091C #040D26 #0A205D #103395

Accessibility & contrast

On white

19.25
#040D26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040D26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D26
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D26#FFFFFF#000000##FFFFFF
##040D261.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011027
Deuteranopia (green-blind)
#000D25
Tritanopia (blue-blind)
#001317
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040d26;
/* rgb */ color: rgb(4, 13, 38);
/* oklch */ color: oklch(16.8% 0.054 264.1);
Tailwind
colors: {
  custom: {
    50: '#484c60',
    500: '#040d26',
    950: '#000000',
  },
}
SCSS
$custom: #040d26;
$custom-light: #484c60;
$custom-dark: #000000;
JSON
{
  "hex": "#040d26",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 38
  },
  "hsl": {
    "h": 224.118,
    "s": 80.952,
    "l": 8.235
  },
  "oklch": {
    "l": 0.16787,
    "c": 0.05407,
    "h": 264.1
  },
  "luminance": 0.00454
}

Semantic roles & 50–950 ramp

primary
#040D26
secondary
#69551D
accent
#C330F7
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #040D26

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

Preview Lab → · Contrast checker → · Palette generator →

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