#2D518E color

#2D518E rgb(45, 81, 142)
Shades of blue

The hex color #2D518E is a dark, moderate azure.

In the RGB color model it is made of 17.6% red, 31.8% green and 55.7% blue (45, 81, 142).

Its hue angle is 218°, with 52% saturation and 37% lightness. For print, the CMYK equivalent is 68% cyan, 43% magenta, 0% yellow and 44% black.

The closest named color is Nightly Activities (#2E5090), a difference of 0.6 ΔE, which is barely visible.

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

#2D518E color codes

HEX#2D518E
RGBrgb(45, 81, 142)
RGB percentrgb(17.6%, 31.8%, 55.7%)
HSLhsl(218, 52%, 37%)
HSV / HSBhsv(218, 68%, 56%)
CMYKcmyk(68%, 43%, 0%, 44%)
CIE LABlab(34.79, 8.16, -37.67)
CIE LCHlch(34.79, 38.54, 282.23)
CIE XYZxyz(8.905, 8.395, 26.737)
Decimal2969998
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #2D518E, 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 #2D518ERatioAAAAAAA large
Sample text2.68:1FailFailFail
Sample text7.84:1PassPassPass
#2D518E as text onRatioAAAAAAA large
Sample text7.84:1PassPassPass
Sample text2.68: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 #2D518E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #2d518e; }
.text { color: #2d518e; }
.border { border: 2px solid #2d518e; }
.transparent { background-color: rgb(45 81 142 / 50%); }
.gradient { background: linear-gradient(to right, #2d518e, #3a2d8e); }
Background
Text color
Border

Similar colors

Closest common color name: Cobalt Blue.

Questions

What color is #2D518E?
#2D518E is a dark, moderate azure, closest to the named color Nightly Activities. It belongs to the blue family of colors.
What is the RGB value of #2D518E?
The RGB value is 45, 81, 142: 45 red, 81 green and 142 blue on a 0 to 255 scale.
What is the complementary color of #2D518E?
The complementary color is #8E6A2D, found by rotating the hue 180° on the color wheel.
Is black or white text better on #2D518E?
White text. Black text has a contrast ratio of 2.68:1 and white text 7.84:1. WCAG asks for at least 4.5:1 for normal text.