#hexpedia

Closest to Medium Blue

#4040FF

Color conversions

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

FormatValueCopy
HEX4040FF
HEX with ##4040FF
RGBrgb(64, 64, 255)
RGBArgba(64, 64, 255, 1)
HSLhsl(240 100% 62.55%)
HSLAhsla(240, 100%, 62.55%, 1)
HSVhsv(240, 74.9%, 100%)
CMYKcmyk(74.9%, 74.9%, 0%, 0%)
OKLCHoklch(51.88% 0.2694 271.93)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

6.18:1

AA normal

Black text

3.4:1

AA large

Reference notes

Medium Blue is the nearest readable name for #4040FF, a saturated blue with bright value. Its RGB value is 64, 64, 255, while the HSL reading places it around 240 degrees of hue, 100% saturation, and 63% lightness. Its cool temperature makes it easier to place in a palette: warm colors tend to move forward, cool colors tend to recede, and neutral colors depend more heavily on surrounding contrast. For interface work, start with the accessibility table before assigning this color to text, icons, or interactive states; perceived brightness can differ from the raw hex value. Pairing suggestions on this page are generated from hue relationships, so they work as starting points rather than fixed brand or accessibility recommendations. For palette building, start with one strong relationship from the pairing section, then adjust lightness until the hierarchy remains readable at small sizes. It works best in badges, highlights, product accents, and moments where quick recognition matters. For stronger contrast, compare it with black and white text and then choose pairings from complementary or split-complementary suggestions.