#40508B color

#40508B rgb(64, 80, 139)
Shades of blue

The hex color #40508B is a desaturated blue.

In the RGB color model it is made of 25.1% red, 31.4% green and 54.5% blue (64, 80, 139).

Its hue angle is 227°, with 37% saturation and 40% lightness. For print, the CMYK equivalent is 54% cyan, 42% magenta, 0% yellow and 45% black.

The closest named color is Twilight (#4E518B), a difference of 3.4 ΔE, a small difference.

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

#40508B color codes

HEX#40508B
RGBrgb(64, 80, 139)
RGB percentrgb(25.1%, 31.4%, 54.5%)
HSLhsl(227, 37%, 40%)
HSV / HSBhsv(227, 54%, 55%)
CMYKcmyk(54%, 42%, 0%, 45%)
CIE LABlab(35.38, 11.72, -34.84)
CIE LCHlch(35.38, 36.75, 288.59)
CIE XYZxyz(9.642, 8.691, 25.591)
Decimal4214923
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40508B, 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 #40508BRatioAAAAAAA large
Sample text2.74:1FailFailFail
Sample text7.67:1PassPassPass
#40508B as text onRatioAAAAAAA large
Sample text7.67:1PassPassPass
Sample text2.74: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 #40508B looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40508b; }
.text { color: #40508b; }
.border { border: 2px solid #40508b; }
.transparent { background-color: rgb(64 80 139 / 50%); }
.gradient { background: linear-gradient(to right, #40508b, #56408b); }
Background
Text color
Border

Similar colors

Closest common color name: Cobalt Blue.

Questions

What color is #40508B?
#40508B is a desaturated blue, closest to the named color Twilight. It belongs to the blue family of colors.
What is the RGB value of #40508B?
The RGB value is 64, 80, 139: 64 red, 80 green and 139 blue on a 0 to 255 scale.
What is the complementary color of #40508B?
The complementary color is #8B7B40, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40508B?
White text. Black text has a contrast ratio of 2.74:1 and white text 7.67:1. WCAG asks for at least 4.5:1 for normal text.