Skip to content
Kolorvia
#040012

Color #040012

A vivid, highly saturated very dark blue.

Conversions

HEX
#040012
RGB
rgb(4, 0, 18)
HSL
hsl(253.3, 100%, 3.5%)
HSV / HSB
hsv(253.3, 100%, 7.1%)
CMYK
cmyk(77.8%, 100%, 0%, 92.9%)
LAB
lab(0.63, 3.82, -7.17)
LCH
lch(0.63, 8.12, 298.05)
OKLCH
oklch(9.6%, 0.0534, 292.58)
HWB
hwb(253.3, 0%, 92.9%)

Harmony colors

Complementary

#0e1200

Analogous

#000512
#040012
#0d0012

Triadic

#040012
#120400
#001204

Split-complementary

#040012
#120d00
#051200

Tetradic

#040012
#12000e
#0e1200
#001204

Square

#040012
#120005
#0e1200
#00120d

Shades

Color #040012 mixed toward black.

#03000f
#03000c
#020009
#010006
#010003

Tints

Color #040012 mixed toward white.

#160064
#2800b6
#3f09ff
#7f5bff
#bfadff

Tones

Color #040012 mixed toward gray.

#050110
#06030f
#06040d
#07060c
#08070a

Accessibility

Aa White text on this color
20.71:1
Aa Black text on this color
1.01:1

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

Under color vision deficiencies

Protanopia

#02020f · ΔE 2.7

Deuteranopia

#03030e · ΔE 3.4

Tritanopia

#040b0a · ΔE 9.5

Achromatopsia

#020202 · ΔE 7.6

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

Code

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

Related colors

Dark Slate Blue #483d8b
Medium Slate Blue #7b68ee
Slate Blue #6a5acd
Medium Purple #9370db
Navy #000080
Lavender #e6e6fa

Frequently asked questions

#040012 (#040012) is rgb(4, 0, 18) in RGB.

No, #040012 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 #040012, 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.