#hexpedia

Closest to Dark Blue

#4020C0

Color conversions

Reference values for common CSS, design, and accessibility formats.

FormatValueCopy
HEX4020C0
HEX with ##4020C0
RGBrgb(64, 32, 192)
RGBArgba(64, 32, 192, 1)
HSLhsl(252 71.43% 43.92%)
HSLAhsla(252, 71.43%, 43.92%, 1)
HSVhsv(252, 83.33%, 75.29%)
CMYKcmyk(66.67%, 83.33%, 0%, 24.71%)
OKLCHoklch(41.58% 0.2245 279.46)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

9.61:1

AAA normal

Black text

2.19:1

Decorative only

Reference notes

As a reference color, #4020C0 reads as balanced violet, with Dark Blue as its nearest named anchor. Because the hue is approximately 252 degrees, it belongs to the violet family rather than a neutral family, even when used in small interface details. When documenting the color, keep the hex value as the canonical reference and treat the cool family label as a practical visual description rather than a fixed rule. The contrast checks on this page show whether it is more reliable with black text or white text, which is usually the first practical decision before using the color in UI. The modification grid is useful for finding a border, hover, or background companion without changing the underlying hue family too aggressively. For data visualization, avoid relying on this color alone; combine it with spacing, labels, or pattern differences so meaning is not carried only by hue. Use it for badges, highlights, product accents, and moments where quick recognition matters. Check contrast before placing body text on top of it, and pair it with nearby analogous colors when the design should stay calm.