#1F1B4F color

#1F1B4F rgb(31, 27, 79)
Shades of blue

The hex color #1F1B4F is a dark, desaturated blue.

In the RGB color model it is made of 12.2% red, 10.6% green and 31% blue (31, 27, 79).

Its hue angle is 245°, with 49% saturation and 21% lightness. For print, the CMYK equivalent is 61% cyan, 66% magenta, 0% yellow and 69% black.

The closest named color is Silent Orbit (#231C4D), a difference of 1.2 ΔE, which is barely visible.

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

#1F1B4F color codes

HEX#1F1B4F
RGBrgb(31, 27, 79)
RGB percentrgb(12.2%, 10.6%, 31%)
HSLhsl(245, 49%, 21%)
HSV / HSBhsv(245, 66%, 31%)
CMYKcmyk(61%, 66%, 0%, 69%)
CIE LABlab(13.47, 19.01, -31.49)
CIE LCHlch(13.47, 36.78, 301.11)
CIE XYZxyz(2.368, 1.64, 7.587)
Decimal2038607
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #1F1B4F, 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 #1F1B4FRatioAAAAAAA large
Sample text1.33:1FailFailFail
Sample text15.81:1PassPassPass
#1F1B4F as text onRatioAAAAAAA large
Sample text15.81:1PassPassPass
Sample text1.33: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 #1F1B4F looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #1f1b4f; }
.text { color: #1f1b4f; }
.border { border: 2px solid #1f1b4f; }
.transparent { background-color: rgb(31 27 79 / 50%); }
.gradient { background: linear-gradient(to right, #1f1b4f, #391b4f); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #1F1B4F?
#1F1B4F 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 #1F1B4F?
The RGB value is 31, 27, 79: 31 red, 27 green and 79 blue on a 0 to 255 scale.
What is the complementary color of #1F1B4F?
The complementary color is #4B4F1B, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1F1B4F?
White text. Black text has a contrast ratio of 1.33:1 and white text 15.81:1. WCAG asks for at least 4.5:1 for normal text.