#040221 color

#040221 rgb(4, 2, 33)
Shades of black

The hex color #040221 is a very dark, vivid blue.

In the RGB color model it is made of 1.6% red, 0.8% green and 12.9% blue (4, 2, 33).

Its hue angle is 244°, with 89% saturation and 7% lightness. For print, the CMYK equivalent is 88% cyan, 94% magenta, 0% yellow and 87% black.

The closest named color is Mysterious Depths (#060929), a difference of 2.2 ΔE, a small difference.

White text is the more readable choice on this background (contrast 20.27:1).

#040221 color codes

HEX#040221
RGBrgb(4, 2, 33)
RGB percentrgb(1.6%, 0.8%, 12.9%)
HSLhsl(244, 89%, 7%)
HSV / HSBhsv(244, 94%, 13%)
CMYKcmyk(88%, 94%, 0%, 87%)
CIE LABlab(1.62, 7.21, -17.08)
CIE LCHlch(1.62, 18.54, 292.89)
CIE XYZxyz(0.346, 0.179, 1.455)
Decimal262689
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #040221, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #040221RatioAAAAAAA large
Sample text1.04:1FailFailFail
Sample text20.27:1PassPassPass
#040221 as text onRatioAAAAAAA large
Sample text20.27:1PassPassPass
Sample text1.04:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #040221 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #040221; }
.text { color: #040221; }
.border { border: 2px solid #040221; }
.transparent { background-color: rgb(4 2 33 / 50%); }
.gradient { background: linear-gradient(to right, #040221, #140221); }
Background
Text color
Border

Similar colors

Closest common color name: Oxford Blue.

Questions

What color is #040221?
#040221 is a very dark, vivid blue, closest to the named color Mysterious Depths. It belongs to the black family of colors.
What is the RGB value of #040221?
The RGB value is 4, 2, 33: 4 red, 2 green and 33 blue on a 0 to 255 scale.
What is the complementary color of #040221?
The complementary color is #1F2102, found by rotating the hue 180° on the color wheel.
Is black or white text better on #040221?
White text. Black text has a contrast ratio of 1.04:1 and white text 20.27:1. WCAG asks for at least 4.5:1 for normal text.