#40008F color

#40008F rgb(64, 0, 143)
Shades of purple

The hex color #40008F is a dark, vivid violet.

In the RGB color model it is made of 25.1% red, 0% green and 56.1% blue (64, 0, 143).

Its hue angle is 267°, with 100% saturation and 28% lightness. For print, the CMYK equivalent is 55% cyan, 100% magenta, 0% yellow and 44% black.

The closest named color is Space Battle Blue (#440099), a difference of 1.5 ΔE, which is barely visible.

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

#40008F color codes

HEX#40008F
RGBrgb(64, 0, 143)
RGB percentrgb(25.1%, 0%, 56.1%)
HSLhsl(267, 100%, 28%)
HSV / HSBhsv(267, 100%, 56%)
CMYKcmyk(55%, 100%, 0%, 44%)
CIE LABlab(20.33, 53.68, -61.76)
CIE LCHlch(20.33, 81.82, 311)
CIE XYZxyz(7.071, 3.073, 26.202)
Decimal4194447
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #40008F, 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 #40008FRatioAAAAAAA large
Sample text1.61:1FailFailFail
Sample text13.01:1PassPassPass
#40008F as text onRatioAAAAAAA large
Sample text13.01:1PassPassPass
Sample text1.61: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 #40008F looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #40008f; }
.text { color: #40008f; }
.border { border: 2px solid #40008f; }
.transparent { background-color: rgb(64 0 143 / 50%); }
.gradient { background: linear-gradient(to right, #40008f, #88008f); }
Background
Text color
Border

Similar colors

Questions

What color is #40008F?
#40008F is a dark, vivid violet, closest to the named color Space Battle Blue. It belongs to the purple family of colors.
What is the RGB value of #40008F?
The RGB value is 64, 0, 143: 64 red, 0 green and 143 blue on a 0 to 255 scale.
What is the complementary color of #40008F?
The complementary color is #4F8F00, found by rotating the hue 180° on the color wheel.
Is black or white text better on #40008F?
White text. Black text has a contrast ratio of 1.61:1 and white text 13.01:1. WCAG asks for at least 4.5:1 for normal text.