#1F044C color

#1F044C rgb(31, 4, 76)
Shades of black

The hex color #1F044C is a very dark, vivid violet.

In the RGB color model it is made of 12.2% red, 1.6% green and 29.8% blue (31, 4, 76).

Its hue angle is 263°, with 90% saturation and 16% lightness. For print, the CMYK equivalent is 59% cyan, 95% magenta, 0% yellow and 70% black.

The closest named color is Your Darkness (#220044), a difference of 2.1 ΔE, a small difference.

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

#1F044C color codes

HEX#1F044C
RGBrgb(31, 4, 76)
RGB percentrgb(12.2%, 1.6%, 29.8%)
HSLhsl(263, 90%, 16%)
HSV / HSBhsv(263, 95%, 30%)
CMYKcmyk(59%, 95%, 0%, 70%)
CIE LABlab(8.13, 32, -38.17)
CIE LCHlch(8.13, 49.81, 309.97)
CIE XYZxyz(1.913, 0.9, 6.909)
Decimal2032716
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #1F044C, 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 #1F044CRatioAAAAAAA large
Sample text1.18:1FailFailFail
Sample text17.8:1PassPassPass
#1F044C as text onRatioAAAAAAA large
Sample text17.8:1PassPassPass
Sample text1.18: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 #1F044C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #1f044c; }
.text { color: #1f044c; }
.border { border: 2px solid #1f044c; }
.transparent { background-color: rgb(31 4 76 / 50%); }
.gradient { background: linear-gradient(to right, #1f044c, #43044c); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #1F044C?
#1F044C is a very dark, vivid violet, closest to the named color Your Darkness. It belongs to the black family of colors.
What is the RGB value of #1F044C?
The RGB value is 31, 4, 76: 31 red, 4 green and 76 blue on a 0 to 255 scale.
What is the complementary color of #1F044C?
The complementary color is #314C04, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1F044C?
White text. Black text has a contrast ratio of 1.18:1 and white text 17.8:1. WCAG asks for at least 4.5:1 for normal text.