#1F0C45 color

#1F0C45 rgb(31, 12, 69)
Shades of black

The hex color #1F0C45 is a very dark, moderate violet.

In the RGB color model it is made of 12.2% red, 4.7% green and 27.1% blue (31, 12, 69).

Its hue angle is 260°, with 70% saturation and 16% lightness. For print, the CMYK equivalent is 55% cyan, 83% magenta, 0% yellow and 73% black.

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

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

#1F0C45 color codes

HEX#1F0C45
RGBrgb(31, 12, 69)
RGB percentrgb(12.2%, 4.7%, 27.1%)
HSLhsl(260, 70%, 16%)
HSV / HSBhsv(260, 83%, 27%)
CMYKcmyk(55%, 83%, 0%, 73%)
CIE LABlab(8.86, 25.4, -32.07)
CIE LCHlch(8.86, 40.91, 308.38)
CIE XYZxyz(1.77, 0.984, 5.726)
Decimal2034757
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

.background { background-color: #1f0c45; }
.text { color: #1f0c45; }
.border { border: 2px solid #1f0c45; }
.transparent { background-color: rgb(31 12 69 / 50%); }
.gradient { background: linear-gradient(to right, #1f0c45, #3b0c45); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #1F0C45?
#1F0C45 is a very dark, moderate violet, closest to the named color Your Darkness. It belongs to the black family of colors.
What is the RGB value of #1F0C45?
The RGB value is 31, 12, 69: 31 red, 12 green and 69 blue on a 0 to 255 scale.
What is the complementary color of #1F0C45?
The complementary color is #32450C, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1F0C45?
White text. Black text has a contrast ratio of 1.2:1 and white text 17.55:1. WCAG asks for at least 4.5:1 for normal text.