Deep Blue color: hex code #040273

#040273 rgb(4, 2, 115)
Shades of black

Deep Blue has the hex code #040273. It is a dark, vivid blue.

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

Its hue angle is 241°, with 97% saturation and 23% lightness. For print, the CMYK equivalent is 97% cyan, 98% magenta, 0% yellow and 55% black.

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

Deep Blue (#040273) color codes

HEX#040273
RGBrgb(4, 2, 115)
RGB percentrgb(1.6%, 0.8%, 45.1%)
HSLhsl(241, 97%, 23%)
HSV / HSBhsv(241, 98%, 45%)
CMYKcmyk(97%, 98%, 0%, 55%)
CIE LABlab(11.32, 43.1, -59.09)
CIE LCHlch(11.32, 73.14, 306.1)
CIE XYZxyz(3.165, 1.307, 16.302)
Decimal262771
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Deep Blue, 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 #040273RatioAAAAAAA large
Sample text1.26:1FailFailFail
Sample text16.65:1PassPassPass
#040273 as text onRatioAAAAAAA large
Sample text16.65:1PassPassPass
Sample text1.26: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 #040273 looks to people with the most common types of color vision deficiency.

CSS examples

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

Similar colors

See #040273 on its hex code page

Questions

What color is #040273?
#040273 is a dark, vivid blue known as Deep Blue. It belongs to the black family of colors.
What is the RGB value of Deep Blue?
The RGB value is 4, 2, 115: 4 red, 2 green and 115 blue on a 0 to 255 scale.
What is the complementary color of Deep Blue?
The complementary color is #717302, found by rotating the hue 180° on the color wheel.
Is black or white text better on #040273?
White text. Black text has a contrast ratio of 1.26:1 and white text 16.65:1. WCAG asks for at least 4.5:1 for normal text.