#2255CC color

#2255CC is rgb(34, 85, 204) in RGB and hsl(222, 71%, 47%) in HSL. The closest CSS named color is royalblue (#4169e1, ΔE 7.4). Use white text on it (contrast 6.48:1).

#2255CCblue
HEX#2255CC
Short HEX#25C
RGBrgb(34, 85, 204)
RGB percentrgb(13.3%, 33.3%, 80%)
HSLhsl(222, 71%, 47%)
HSV / HSBhsv(222, 83%, 80%)
CMYKcmyk(83%, 58%, 0%, 20%)

Edit in the color converter → · Check contrast → · Shades →

About #2255CC

#2255CC is a medium, saturated blue with a hue angle of 222°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 204 (80%) and red the weakest at 34 (13%). Colors like this are typically used for illustrations, charts, highlights and secondary buttons.

Color conversions

HEX#2255CC
Short HEX#25C
RGBrgb(34, 85, 204)
RGB percentrgb(13.3%, 33.3%, 80%)
HSLhsl(222, 71%, 47%)
HSV / HSBhsv(222, 83%, 80%)
CMYKcmyk(83%, 58%, 0%, 20%)
CIELAB (D65)lab(39.9 28 -66.2)
Decimal2250188
Binary00100010 01010101 11001100

HEX 22 55 CC → 34, 85, 204 (each pair is a base-16 number: 2×16 + 2 = 34)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #2255CC

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #2255CCRatioAA normalAA largeAAA normalAAA large
White text6.48:1PassPassFailPass
Black text3.24:1FailPassFailFail
White text on #2255CC
Black text on #2255CC
#2255CC text on white
#2255CC text on black

Relative luminance is 0.1120 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#0066d0

Deuteranopia
#0057ca

Tritanopia
#007388

Achromatopsia
#5e5e5e

People with red–green color blindness see this color almost unchanged (ΔE 2 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
royalblue#4169e17.4
slateblue#6a5acd9.5
darkslateblue#483d8b13.1
mediumslateblue#7b68ee14.1

Nearby colors

CSS

.element {
  color: #2255cc;
  background-color: rgb(34, 85, 204);
  border: 1px solid hsl(222, 71%, 47%);
  box-shadow: 0 2px 8px rgb(34 85 204 / 50%);
}
:root { --brand: #2255cc; }

Frequently asked questions

What color is #2255CC?
A medium saturated blue in the blue family. Closest CSS name: royalblue.
What is #2255CC in RGB?
rgb(34, 85, 204): red 34, green 85, blue 204.
What is the complementary color of #2255CC?
#CC9922, found by rotating the hue 180°.