#1F1B4C color
The hex color #1F1B4C is a dark, desaturated blue.
In the RGB color model it is made of 12.2% red, 10.6% green and 29.8% blue (31, 27, 76).
Its hue angle is 245°, with 48% saturation and 20% lightness. For print, the CMYK equivalent is 59% cyan, 64% magenta, 0% yellow and 70% black.
The closest named color is Silent Orbit (#231C4D), a difference of 0.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.92:1).
#1F1B4C color codes
| HEX | #1F1B4C | |
|---|---|---|
| RGB | rgb(31, 27, 76) | |
| RGB percent | rgb(12.2%, 10.6%, 29.8%) | |
| HSL | hsl(245, 48%, 20%) | |
| HSV / HSB | hsv(245, 64%, 30%) | |
| CMYK | cmyk(59%, 64%, 0%, 70%) | |
| CIE LAB | lab(13.21, 17.89, -29.85) | |
| CIE LCH | lch(13.21, 34.8, 300.94) | |
| CIE XYZ | xyz(2.261, 1.597, 7.025) | |
| Decimal | 2038604 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F1B4C, 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 #1F1B4C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.32:1 | Fail | Fail | Fail |
| Sample text | 15.92:1 | Pass | Pass | Pass |
| #1F1B4C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.92:1 | Pass | Pass | Pass |
| Sample text | 1.32: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 #1F1B4C looks to people with the most common types of color vision deficiency.
#00244eProtanopia
no red cones#00204bDeuteranopia
no green cones#0b2630Tritanopia
no blue cones#222222Achromatopsia
no color vision
CSS examples
.background { background-color: #1f1b4c; }
.text { color: #1f1b4c; }
.border { border: 2px solid #1f1b4c; }
.transparent { background-color: rgb(31 27 76 / 50%); }
.gradient { background: linear-gradient(to right, #1f1b4c, #381b4c); }
Similar colors
#231c4dSilent Orbit#211d49Azulado#1c1e4dFly-by-Night#222255Spacescape#111144Deadly Depths#2a2551Pāua#222244Black Market#112255Dark Soul
Closest common color name: Midnight Blue.
Questions
- What color is #1F1B4C?
- #1F1B4C is a dark, desaturated blue, closest to the named color Silent Orbit. It belongs to the blue family of colors.
- What is the RGB value of #1F1B4C?
- The RGB value is 31, 27, 76: 31 red, 27 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #1F1B4C?
- The complementary color is #484C1B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F1B4C?
- White text. Black text has a contrast ratio of 1.32:1 and white text 15.92:1. WCAG asks for at least 4.5:1 for normal text.