#040C52

Dark Blue

HEX

RGB

HSL

About #040C52 Dark Blue

#040C52 is a dark blue color. In the RGB color model, it is composed of 4 red, 12 green, and 82 blue. In the HSL color space, it has a hue of 234°, saturation of 91%, and lightness of 17%.

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

Use #040C52 in your CSS, SCSS, or Tailwind projects.

Color Properties

234°

Hue

91%

Saturation

17%

Lightness

Dark Blue

Color Harmonies

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

Accessibility

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

Aa#040C52 on White
Contrast Ratio17.8:1
AA AA Large AAA
Aa#040C52 on Black
Contrast Ratio1.18:1
AA AA Large AAA

Color Conversion Table

Complete conversion of #040C52 across different color formats.

FormatValue
HEX#040C52
RGBrgb(4, 12, 82)
HSLhsl(234, 91%, 17%)
RGB Decimal4, 12, 82
RGB Percent1.6%, 4.7%, 32.2%
CMYK (approx.)95%, 85%, 0%, 68%

Related Palettes

12 palettes using #040C52 or similar colors

#0C134F#1D267D#5C469C#D4ADFC
#0E0F25#161850#272A72#353997
#0B2447#19376D#576CBC#A5D7E8
#1B1464#0652DD#12CBC4#FDA7DF
#1289A7#0652DD#1B1464#000000
#B53471#833471#6F1E51#1B1464
#141122#22184E#3E3564#432F9D
#121221#201F51#393875#4C4AA1
#1A1A2E#16213E#0F3460#E94560
#111222#1F2251#30337E#494EA1
#DFF6FF#47B5FF#256D85#06283D
#F9F7F7#DBE2EF#3F72AF#112D4E