#hexpedia

Closest to Medium Blue

#4020E0

Color conversions

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

FormatValueCopy
HEX4020E0
HEX with ##4020E0
RGBrgb(64, 32, 224)
RGBArgba(64, 32, 224, 1)
HSLhsl(250 75.59% 50.2%)
HSLAhsla(250, 75.59%, 50.2%, 1)
HSVhsv(250, 85.71%, 87.84%)
CMYKcmyk(71.43%, 85.71%, 0%, 12.16%)
OKLCHoklch(45.17% 0.259 275.89)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

8.4:1

AAA normal

Black text

2.5:1

Decorative only

Reference notes

#4020E0 is a balanced, saturated violet color closest to Medium Blue. The color has RGB channels of 64, 32, and 224; in HSL terms, it is centered near 250 degrees with 76% saturation and 50% lightness. In a design system, this cool reading is a useful shortcut for deciding whether the color should act as a primary accent, a supporting surface, or a quiet divider. The safest usage pattern is to test it against both light and dark surfaces, then reserve the weaker text pairing for decoration rather than essential labels. If the color feels too forceful at full strength, the lighter, darker, and desaturated variants usually provide a calmer path for production UI. For editorial or product interfaces, reserve the most saturated use for accents and repeat softer variants in borders, labels, or background fills. This makes it useful for badges, highlights, product accents, and moments where quick recognition matters. In CSS systems, define it as a custom property first so variations, shadows, and gradients can stay consistent.