Skip to content
Kolorvia
#040d3f

Color #040d3f

A vivid, highly saturated very dark blue.

Conversions

HEX
#040d3f
RGB
rgb(4, 13, 63)
HSL
hsl(230.8, 88.1%, 13.1%)
HSV / HSB
hsv(230.8, 93.7%, 24.7%)
CMYK
cmyk(93.7%, 79.4%, 0%, 75.3%)
LAB
lab(6.07, 17.64, -32.47)
LCH
lch(6.07, 36.95, 298.51)
OKLCH
oklch(19.6%, 0.0952, 266.69)
HWB
hwb(230.8, 1.6%, 75.3%)

Harmony colors

Complementary

#3f3604

Analogous

#042a3f
#040d3f
#18043f

Triadic

#040d3f
#3f040d
#0d3f04

Split-complementary

#040d3f
#3f1804
#2a3f04

Tetradic

#040d3f
#36043f
#3f3604
#0d3f04

Square

#040d3f
#3f042a
#3f3604
#043f18

Shades

Color #040d3f mixed toward black.

#030b34
#03092a
#02071f
#010415
#01020a

Tints

Color #040d3f mixed toward white.

#081b84
#0d2aca
#2f4df2
#7488f6
#bac4fb

Tones

Color #040d3f mixed toward gray.

#09103a
#0e1435
#131730
#181b2b
#1d1e26

Accessibility

Aa White text on this color
18.51:1
Aa Black text on this color
1.13:1

White text reads better on this background (18.51:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#080837 · ΔE 1.8

Deuteranopia

#070735 · ΔE 2.2

Tritanopia

#04302f · ΔE 26.3

Achromatopsia

#131313 · ΔE 21.1

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #040d3f;
Tailwind (arbitrary value)
bg-[#040d3f]

Related colors

Royal Blue #4169e1
Navy #000080
Lavender #e6e6fa
Blue #0000ff
Dark Blue #00008b
Ghost White #f8f8ff

Frequently asked questions

#040d3f (#040d3f) is rgb(4, 13, 63) in RGB.

No, #040d3f is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #040d3f, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.