#040D40

Dark Blue

HEX

RGB

HSL

About #040D40 Dark Blue

#040D40 is a dark blue color. In the RGB color model, it is composed of 4 red, 13 green, and 64 blue. In the HSL color space, it has a hue of 231°, saturation of 88%, and lightness of 13%.

This color has a low lightness value, making it a dark color great for text and bold accents. With high saturation, it appears vibrant and eye-catching.

CSS Code & Gradients

Use #040D40 in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.

Beautiful Gradients

Color Properties

231°

Hue

88%

Saturation

13%

Lightness

Dark Blue

Color Harmonies

Colors that work well with #040D40 based on color theory.

Accessibility

WCAG 2.1 contrast ratio of #040D40 against white and black backgrounds.

Aa#040D40 on White
Contrast Ratio18.47:1
AA AA Large AAA
Aa#040D40 on Black
Contrast Ratio1.14:1
AA AA Large AAA

Color Conversion Table

Complete conversion of #040D40 across different color formats.

FormatValue
HEX#040D40
RGBrgb(4, 13, 64)
HSLhsl(231, 88%, 13%)
RGB Decimal4, 13, 64
RGB Percent1.6%, 5.1%, 25.1%
CMYK (approx.)94%, 80%, 0%, 75%

Related Palettes

12 palettes using #040D40 or similar colors

#0C134F#1D267D#5C469C#D4ADFC
#0B2447#19376D#576CBC#A5D7E8
#0E0F25#161850#272A72#353997
#1A1A2E#16213E#0F3460#E94560
#DFF6FF#47B5FF#256D85#06283D
#0D1326#2B3145#374677#5B6790
#0C1827#1F3047#254774#40618C
#0F0E25#2C2C45#3F3E6F#3E3DAE
#160A29#2F2046#452574#5F418B
#0E1425#1B274B#243875#374E95
#0E1425#1E2B53#404B6D#566694
#0D1826#23364E#3C5472#3C70AF