Medium blue

#340ea2

Hex, rgb, cmyk and Pantone values for medium blue, with shades, tints, matching colors and free print quality patterns.

Medium blue falls in the purple range, deep and vivid. Deep purples like this carry luxury and craft. Yellow greens across the wheel wake it up and soft greys let it stay refined.

Medium blue color values

Every conversion for #340ea2, ready to copy. Hex, rgb, hsl, hsv, cmyk, cie-lab, xyz, decimal, web safe and the nearest Pantone.

Hex#340ea2
RGB52, 14, 162
HSL255, 84%, 35%
HSV255, 91%, 64%
CMYK68%, 91%, 0%, 36%
Lab22.49, 54.09, -69.94
XYZ8.09, 3.65, 34.46
Decimal3411618
Web safe#330099
Pantone2738 C
Pantone2738 CHex#340ea2Rgb52 14 162Cmyk68 91 0 36Lab22 54 -70Darker#120538Deep#1f0860Lighter#4e1ed9

Shades of medium blue

Tints of medium blue

Colors that go with medium blue

Medium blue in print

The saturation is high, which is where rgb and cmyk drift apart, so a printed proof is worth it. The cmyk build is 68, 91, 0, 36.

The same color needs a different cmyk build depending on the paper. Here is #340ea2 on both.

Coated stockgloss or silk, C
68 91 0 36
Ink sits on the surface, so colors stay bright and close to screen.
Uncoated stocknatural or matte, U
67 88 4 42
The stock absorbs ink and gains dot, so it needs a heavier build and reads a touch softer.

This color is saturated enough to sit near the edge of cmyk gamut, so expect a small drop in punch on paper and proof it before a long run.

See how it converts in the rgb to cmyk converter, or read rgb vs cmyk for print and what the k in cmyk means.

Medium blue in css

Copy #340ea2 straight into your stylesheet.

.background { background-color: #340ea2; }
.text { color: #340ea2; }
.border { border: 2px solid #340ea2; }

How medium blue looks on light and dark

Medium blue and accessibility

Contrast ratios for #340ea2 against black and white text, measured to the WCAG standard.

Textwhite text on this color
12.13:1
AA pass · AA large pass · AAA pass
Textblack text on this color
1.73:1
AA fail · AA large fail · AAA fail

Use white text on this color for readable body copy. To test #340ea2 against any other color, not just black and white, run the pair through our contrast checker for a live WCAG reading.

Medium blue on a business card, sticker and pattern

A quick look at how #340ea2 sits on real print products. Start any of these in the maker.

Your nameFounderhello@brand.comBusiness card
Sticker
Repeat pattern

Building a full palette around medium blue? Pull matching colors from any photo with the color palette generator, or check a design for print with the rgb to cmyk converter.

Turn medium blue into a seamless pattern

Four patterns built from #340ea2 and its shades, free at print quality. Click any one to keep editing in the pattern maker.

Make posters, wallpaper and packaging art from medium blue, free and print ready.

Open in pattern maker

How we calculate these values

Every value on this page for #340ea2 is computed, not guessed. We convert from sRGB to each space with the standard formulas, so the codes match what design tools show. The uncoated cmyk build carries more ink than the coated one, which is what a printer would compensate for when the same color runs on a rougher stock. For Pantone we return the nearest reference by perceptual distance, which gets you close but is not a substitute for a physical swatch book.