#40397E color

#40397E rgb(64, 57, 126)
Shades of blue

The hex color #40397E is a dark, desaturated blue.

In the RGB color model it is made of 25.1% red, 22.4% green and 49.4% blue (64, 57, 126).

Its hue angle is 246°, with 38% saturation and 36% lightness. For print, the CMYK equivalent is 49% cyan, 55% magenta, 0% yellow and 51% black.

The closest named color is Dark Slate Blue (#483D8B), a difference of 2.6 ΔE, a small difference.

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

#40397E color codes

HEX#40397E
RGBrgb(64, 57, 126)
RGB percentrgb(25.1%, 22.4%, 49.4%)
HSLhsl(246, 38%, 36%)
HSV / HSBhsv(246, 55%, 49%)
CMYKcmyk(49%, 55%, 0%, 51%)
CIE LABlab(28.17, 22.54, -38.31)
CIE LCHlch(28.17, 44.45, 300.47)
CIE XYZxyz(7.342, 5.522, 20.414)
Decimal4209022
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40397E, 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 #40397ERatioAAAAAAA large
Sample text2.1:1FailFailFail
Sample text9.98:1PassPassPass
#40397E as text onRatioAAAAAAA large
Sample text9.98:1PassPassPass
Sample text2.1: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 #40397E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40397e; }
.text { color: #40397e; }
.border { border: 2px solid #40397e; }
.transparent { background-color: rgb(64 57 126 / 50%); }
.gradient { background: linear-gradient(to right, #40397e, #62397e); }
Background
Text color
Border

Similar colors

Questions

What color is #40397E?
#40397E is a dark, desaturated blue, closest to the named color Dark Slate Blue. It belongs to the blue family of colors.
What is the RGB value of #40397E?
The RGB value is 64, 57, 126: 64 red, 57 green and 126 blue on a 0 to 255 scale.
What is the complementary color of #40397E?
The complementary color is #777E39, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40397E?
White text. Black text has a contrast ratio of 2.1:1 and white text 9.98:1. WCAG asks for at least 4.5:1 for normal text.