#40384C color

#40384C rgb(64, 56, 76)
Shades of purple

The hex color #40384C is a dark, grayish violet.

In the RGB color model it is made of 25.1% red, 22% green and 29.8% blue (64, 56, 76).

Its hue angle is 264°, with 15% saturation and 26% lightness. For print, the CMYK equivalent is 16% cyan, 26% magenta, 0% yellow and 70% black.

The closest named color is Royal Decree (#403547), a difference of 1.8 ΔE, which is barely visible.

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

#40384C color codes

HEX#40384C
RGBrgb(64, 56, 76)
RGB percentrgb(25.1%, 22%, 29.8%)
HSLhsl(264, 15%, 26%)
HSV / HSBhsv(264, 26%, 30%)
CMYKcmyk(16%, 26%, 0%, 70%)
CIE LABlab(25.08, 8.18, -10.94)
CIE LCHlch(25.08, 13.66, 306.8)
CIE XYZxyz(4.833, 4.44, 7.439)
Decimal4208716
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40384C, 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 #40384CRatioAAAAAAA large
Sample text1.89:1FailFailFail
Sample text11.12:1PassPassPass
#40384C as text onRatioAAAAAAA large
Sample text11.12:1PassPassPass
Sample text1.89: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 #40384C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40384c; }
.text { color: #40384c; }
.border { border: 2px solid #40384c; }
.transparent { background-color: rgb(64 56 76 / 50%); }
.gradient { background: linear-gradient(to right, #40384c, #4a384c); }
Background
Text color
Border

Similar colors

Closest common color name: Eggplant.

Questions

What color is #40384C?
#40384C is a dark, grayish violet, closest to the named color Royal Decree. It belongs to the purple family of colors.
What is the RGB value of #40384C?
The RGB value is 64, 56, 76: 64 red, 56 green and 76 blue on a 0 to 255 scale.
What is the complementary color of #40384C?
The complementary color is #444C38, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40384C?
White text. Black text has a contrast ratio of 1.89:1 and white text 11.12:1. WCAG asks for at least 4.5:1 for normal text.