#040D29#040D29

#040D29 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.1% C 0.059 H 265.0°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#040D29
RGBrgb(4, 13, 41)
HSLhsl(225, 82%, 9%)
HSVhsv(225, 90%, 16%)
CMYKcmyk(90.2%, 68.3%, 0%, 83.9%)
CIE-LABlab(4.28, 5.89, -19.16)
CIE-LCHlch(4.28, 20.04, 287.10°)
OKLaboklab(17.09% -0.0052 -0.0592)
OKLCHoklch(17.09% 0.059 265)
XYZxyz(0.5941, 0.4737, 2.1575)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D29 #292004
analogous
#042029 #040D29 #0E0429
triadic
#040D29 #29040D #0D2904
tetradic
#040D29 #290420 #292004 #04290E
square
#040D29 #290420 #292004 #04290E
split-complementary
#040D29 #290E04 #202904
monochromatic
#03091C #03091C #040D29 #091F61 #0F3099

Accessibility & contrast

On white

19.18
#040D29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D29
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D29#FFFFFF#000000##FFFFFF
##040D291.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112A
Deuteranopia (green-blind)
#000D28
Tritanopia (blue-blind)
#001419
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040d29;
/* rgb */ color: rgb(4, 13, 41);
/* oklch */ color: oklch(17.1% 0.059 265.0);
Tailwind
colors: {
  custom: {
    50: '#494c63',
    500: '#040d29',
    950: '#000000',
  },
}
SCSS
$custom: #040d29;
$custom-light: #494c63;
$custom-dark: #000000;
JSON
{
  "hex": "#040d29",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 41
  },
  "hsl": {
    "h": 225.405,
    "s": 82.222,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17088,
    "c": 0.05941,
    "h": 265
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#040D29
secondary
#6C591D
accent
#C82FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040D29

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

Preview Lab → · Contrast checker → · Palette generator →

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