Perfect Dark color: hex code #313390

#313390 rgb(49, 51, 144)
Shades of blue

Perfect Dark has the hex code #313390. It is a dark, desaturated blue.

In the RGB color model it is made of 19.2% red, 20% green and 56.5% blue (49, 51, 144).

Its hue angle is 239°, with 49% saturation and 38% lightness. For print, the CMYK equivalent is 66% cyan, 65% magenta, 0% yellow and 44% black.

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

Perfect Dark (#313390) color codes

HEX#313390
RGBrgb(49, 51, 144)
RGB percentrgb(19.2%, 20%, 56.5%)
HSLhsl(239, 49%, 38%)
HSV / HSBhsv(239, 66%, 56%)
CMYKcmyk(66%, 65%, 0%, 44%)
CIE LABlab(26.83, 29.68, -51.74)
CIE LCHlch(26.83, 59.65, 299.84)
CIE XYZxyz(7.483, 5.034, 26.957)
Decimal3224464
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Perfect Dark, 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 #313390RatioAAAAAAA large
Sample text2.01:1FailFailFail
Sample text10.46:1PassPassPass
#313390 as text onRatioAAAAAAA large
Sample text10.46:1PassPassPass
Sample text2.01: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 #313390 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #313390; }
.text { color: #313390; }
.border { border: 2px solid #313390; }
.transparent { background-color: rgb(49 51 144 / 50%); }
.gradient { background: linear-gradient(to right, #313390, #5e3190); }
Background
Text color
Border

Similar colors

Closest common color name: Egyptian Blue.

See #313390 on its hex code page

Questions

What color is #313390?
#313390 is a dark, desaturated blue known as Perfect Dark. It belongs to the blue family of colors.
What is the RGB value of Perfect Dark?
The RGB value is 49, 51, 144: 49 red, 51 green and 144 blue on a 0 to 255 scale.
What is the complementary color of Perfect Dark?
The complementary color is #908E31, found by rotating the hue 180° on the color wheel.
Is black or white text better on #313390?
White text. Black text has a contrast ratio of 2.01:1 and white text 10.46:1. WCAG asks for at least 4.5:1 for normal text.