hexcolors

#4040BF

Closest named color: slateblue

About this color

#4040BF is a blue color. In RGB it is 64, 64, 191, and its closest named color is slateblue. Text in white is easiest to read on it, with a contrast ratio of 7.77:1.

What does blue mean?

Copy the value you need

Click any row to copy it.

HEX
RGB
HSL
HSV
CMYK
LAB
OKLCH

Is text readable on #4040BF?

Contrast against white and black text.

Aa Sample
7.77:1 with white text
Passes AAA for all text
Aa Sample
2.70:1 with black text
Fails WCAG contrast

Test your own pair

Make it lighter or darker

Shades keep the same hue. Click one to open the closest color page.

Build a full 50 to 950 scale

Softer versions (tints)

Mixed with white.

Muted versions (tones)

Mixed with gray.

Colors that go with #4040BF

Ready-made pairings from the color wheel.

Complementary

Split complementary

Explore the color wheel · More colors that go with slateblue

How it looks with color blindness

Simulated for common types.

Normal
#4040BF
Protanopia
#0058C3
Deuteranopia
#004DBD
Tritanopia
#00617A

Test an image

Copy the code

CSS, Sass and Tailwind.

color: #4040bf;
background-color: #4040bf;
--brand: #4040bf;
$brand: #4040bf;
bg-[#4040bf] text-[#4040bf] border-[#4040bf]

Similar colors

Nearby colors you might prefer.

Common questions

What is the RGB value of #4040BF?

#4040BF is rgb(64, 64, 191).

What is the closest named color to #4040BF?

The closest CSS named color is slateblue (#6A5ACD).

What color goes well with #4040BF?

Its complementary color is #BFBF40. Analogous colors at #4080BF and #8040BF also work well.

Should I use white or black text on #4040BF?

White text is easier to read, with a contrast ratio of 7.77:1.

Use this color anywhere

Data, embeds and tools.

Get #4040BF as JSON

Embed a color swatch on your site

Add opacity to this color

Pick a different color