Skip to content
Kolorvia
#040d12

Color #040d12

A moderately saturated very dark blue.

Conversions

HEX
#040d12
RGB
rgb(4, 13, 18)
HSL
hsl(201.4, 63.6%, 4.3%)
HSV / HSB
hsv(201.4, 77.8%, 7.1%)
CMYK
cmyk(77.8%, 27.8%, 0%, 92.9%)
LAB
lab(3.23, -1.49, -3.38)
LCH
lch(3.23, 3.69, 246.21)
OKLCH
oklch(15.2%, 0.0189, 229.92)
HWB
hwb(201.4, 1.6%, 92.9%)

Harmony colors

Complementary

#120904

Analogous

#041210
#040d12
#040612

Triadic

#040d12
#12040d
#0d1204

Split-complementary

#040d12
#120406
#121004

Tetradic

#040d12
#090412
#120904
#0d1204

Square

#040d12
#100412
#120904
#061204

Shades

Color #040d12 mixed toward black.

#030b0f
#03090c
#020609
#010406
#010203

Tints

Color #040d12 mixed toward white.

#133d54
#226d97
#379bd3
#7abce1
#bcdef0

Tones

Color #040d12 mixed toward gray.

#050d11
#060c10
#070c0e
#090c0d
#0a0b0c

Accessibility

Aa White text on this color
19.6:1
Aa Black text on this color
1.07:1

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

Under color vision deficiencies

Protanopia

#080811 · ΔE 4.3

Deuteranopia

#070711 · ΔE 4.5

Tritanopia

#041010 · ΔE 3.3

Achromatopsia

#0c0c0c · ΔE 3.7

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

Code

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

Related colors

Light Sky Blue #87cefa
Charcoal #36454f
Sky Blue #87ceeb
Steel Blue #4682b4
Deep Sky Blue #00bfff
Alice Blue #f0f8ff

Frequently asked questions

#040d12 (#040d12) is rgb(4, 13, 18) in RGB.

No, #040d12 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #040d12, 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.