#1F044C color
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 | |
|---|---|---|
| RGB | rgb(31, 4, 76) | |
| RGB percent | rgb(12.2%, 1.6%, 29.8%) | |
| HSL | hsl(263, 90%, 16%) | |
| HSV / HSB | hsv(263, 95%, 30%) | |
| CMYK | cmyk(59%, 95%, 0%, 70%) | |
| CIE LAB | lab(8.13, 32, -38.17) | |
| CIE LCH | lch(8.13, 49.81, 309.97) | |
| CIE XYZ | xyz(1.913, 0.9, 6.909) | |
| Decimal | 2032716 | |
| Short hex | None (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 #1F044C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.18:1 | Fail | Fail | Fail |
| Sample text | 17.8:1 | Pass | Pass | Pass |
| #1F044C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.8:1 | Pass | Pass | Pass |
| Sample text | 1.18:1 | Fail | Fail | Fail |
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.
#00194eProtanopia
no red cones#00164bDeuteranopia
no green cones#0d1b2aTritanopia
no blue cones#181818Achromatopsia
no color vision
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); }
Similar colors
#220044Your Darkness#0f084bSilent Twilight#0a0555Ravenclaw#330055Hollow Knight#340059Cotinga Purple#150f5bSpace Colonisation#2d135fVoldemort#2f1064Infinite Inkwell
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.