2020 Colors
A comprehensive guide to hex color #40407b

About hex color #40407b - near-Dark slate blue

Hex color #40407b is related to "Dark slate blue". It's categorized as "blue". When people spot the color blue in marketing, the following may come to mind: peace, offices, self-expression, energy, and widely-used. This color isn't popular for cars. MercadoLibre.com is using a color close to Dark slate blue in their branding. (Explore brands using Dark slate blue).

In RGB colorspace, the hexadecimal color #40407b is created using 25.1% red, 25.1% green, and 48.2% blue. In CMYK colorspace, you can make the color using 48% cyan, 48% magenta, 0% yellow, and 51.8% black.

RGB Composition
    R   G   B    
CMYK Composition
  C   M   Y   K  

#40407b is made up of R: 64, G: 64, B: 123 in RGB colorspace and C: 47.97, M:47.97, Y:0, K:51.76 in CMYK colorspace. Its decimal value is 4210811 and the closest web-safe color code to it is #333366. Its closest named color is "Dark slate blue". White should be used ontop of #40407b to ensure the best legibility.

Here's a color conversion chart. It contains technical information about the hex color #40407b. If you're a programmer, view the code snippets section for prepared language syntax.

hex #40407b
Websafe hex #333366
rgb 64, 64, 123
rgb percent (%) 25%, 25%, 48.05%
rgba R: 64, G: 64, B: 123, A: 1.0
CMYK C: 47.97, M:47.97, Y:0, K:51.76
hsv 240, 31.55, 36.67
hsb 240, 47.97, 48.24
luma 70.603
Black or white text? #ffffff
Adobe RGB 66, 66, 120
Closest named color Dark slate blue
Hunter-Lab 24.87, 11.97, -31.68
CIE-L*ab 29.88, 16.92, -33.7
CIE-L*Ch(ab) 29.88, 37.71, 296.66
CIE-L*uv 29.88, -3.3, -45.83°

Some colors work better together. Here, you'll find color harmonies and schemes specific to the hex color #40407b. These color palettes have been mathematically proven to pair well in designs.


The Complimentary color scheme is made up of two colors. These two colors are opposite one another in the color spectrum. The first color is called the "base" #40407b and the second color is called the "compliment" #7b7b40.

Design Tip: It's not a good idea to use one of these colors for text and the other for the background.


Split Complimentary

The Split Complimentary color scheme is made up of three colors. The base color #40407b is paired with the two colors to the left and the right of compliment color #7b7b40.

Design Tip: The two secondary colors make for great accent and highlight colors in your design.



The Triadic color scheme is made up of three colors. When viewed on a color wheel, all three colors are spaced evenly (120°) apart.

Design Tip: This color scheme tends to produce colors that are quite vibrant, regardless of saturation.



The Tetradic color scheme is made up of four colors. When viewed on a color wheel, all four colors are spaced evenly (90°) apart.

Design Tip: To successfuly incorpoate Tetradic colors in your designs, you'll need to plan carefully.



The Analagous color scheme is made up of three colors. The three colors sit next to one another on the color wheel. The palette is made in similar fashion to how the Split Complimentary palette is made. However, the two secondary colors are adjacent to the base, not the compliment.

Design Tip: This color scheme typically doesn't produce tension as all three colors tend to be either warm or cold.


When designing or marketing products, especially on a worldwide platform like Amazon, color is important. This section contains links to Amazon products that have some relation to one of the attributes of the color #40407b: "health care".

Please note that 2020 Colours will receive commission for purchases made through the affiliate links above. This page's Amazon links are paid advertisements and are not endoresements or reviews of the product.

Seeing darker, lighter, and tinted variations of the hex color #40407b can help you with your creative processes. Remember, you can click on a color to be taken to its own page full of unique color information.

Darker shades

Darker shades are produced by blending #40407b with black #000000.


Lighter shades

Lighter shades are produced by blending #40407b with white #FFFFFF.



Tones are produced by blending #40407b with gray #808080.


A color gradient may also be known as color progression or a color ramp. A gradient is the gradual transition of one color into another. This section showcases gradients featuring #40407b as the base color. The secondary colors come from the Color Harmonies section above.

Below each gradient is the CSS color code that was used to create it. You can copy and paste it so it can be used in designs of your own.

For more information on how to apply gradients, visit the w3schools.com page on CSS gradients.

Seeing #40407b on a computer or phone screen is much different than how it may appear in the real world. Shown here are 20 different environment types and how #40407b could potentially look inside each of them, given perfect conditions. For example, #40407b appears as #493f74 when in old daylight and as #4b3d7a when in daylight fluorescent.

Old direct sunlight at noon
Old daylight
ICC profile PCS
Mid-morning daylight
Daylight, sRGB, Adobe-RGB
North sky daylight
Equal energy
Daylight Fluorescent
Cool fluorescent
White Fluorescent
Warm White Fluorescent
Daylight Fluorescent
Lite White Fluorescent
Daylight fluorescent, D65 simulator
Sylvania F40, D50 simulator
Cool White Fluorescent
Ultralume 50, Philips TL85
Ultralume 40, Philips TL84
Ultralume 30, Philips TL83
Data used in calculating these colors comes courtesy of Easy RGB.

Colors that have names have reached a point of status where they're more than just a hex code: they're real-world associated. View a list of all 1,500+ named colors.

Closest named colors to #40407b

#40407b might be precisely the color you're looking for. But, the colors below are a close match. What's better is that they're named colors, meaning chances are there's more information about them. If you feel like taking a slight deviation in hue, click a color below to learn about why it's so unique.

Dark slate blue
Purple navy
Metallic blue
Police blue
Cyber grape
Spanish violet
Deep koamaru

Furthest named colors to #40407b

Looking for something completely different? Try a well-documented complimentary color. The named colors below have been calculated to be the furthest colors from #40407b. Click on the colors to explore their unique information.

Baby powder
Lemon glacier

Colors are important to brands and the messages they convey. Brand recognition and colors go hand-in-hand. Knowing what brands are using #40407b, or a color similar, can help you in determining whether the color is appropriate to your design.

MercadoLibre.com uses the color #2d3277

Brand data comes courtesy of Brand Colors. Brands linked may not be suitable for all ages and in no way affiliated with 2020 Colors.

Here you can easily copy-and-paste formatted color code for use with your favorite programming/markup languages like HTML/CSS, Java, Objective-C, and GameMaker Language.

HTML, CSS #40407b
Java new Color(64, 64, 123)
.NET Color.FromArgb(255, 64, 64, 123);
Objective-C [UIColor colorWithRed:0.251 green:0.251 blue:0.4824 alpha:1.00000];
OpenGL glColor3f(0.251f, 0.251f, 0.4824f);
Swift UIColor(red:0.251, green:0.251, blue:0.4824, alpha:1.00000)
GameMaker Language (GML) $7B4040
Python Color('#40407b')

This useful chart contains technical information about the hexadecimal color #40407b. For example, the direct decimal conversion is 4210811 while the individual RGB conversions are: 64, 64, 123.


If you're considering using #40407b in a logo or design, you can quickly reference below to see how various symbols, icons, and emblems look.

Icons courtesy of Font Awesome.

We learned earlier that White-colored text should be used on a #40407b colored background for best readability. But, you can be the judge of that by looking at the examples below.

This text is hex color #40407b on a solid black (#000000) background.

This text is hex color #40407b on a solid white (#ffffff) background.

This text is solid black (#000000) on a solid hex color #40407b background.

This text is solid white (#ffffff) on a solid hex color #40407b background.

This text is hex color #40407b on a striped black (#000000) and white (#ffffff) background.

This text is hex color #40407b on a striped gray (#808080) and white (#ffffff) background.

This text is solid black (#000000) on a striped hex color #40407b and white (#ffffff) background.

This text is solid white (#ffffff) on a striped hex color #40407b and white (#ffffff) background.

Patterns courtesy of Hero Patterns.

If you're a web developer, you might find it useful to see elements like buttons and check boxes in the color #40407b.


The HTML and CSS used to create these elements comes from w3schools.com.
© 2019 — 2020 Colors banack Support