#0022BB color

#0022BB is rgb(0, 34, 187) in RGB and hsl(229, 100%, 37%) in HSL. The closest CSS named color is mediumblue (#0000cd, ΔE 4). Use white text on it (contrast 10.79:1).

#0022BBblue
HEX#0022BB
Short HEX#02B
RGBrgb(0, 34, 187)
RGB percentrgb(0%, 13.3%, 73.3%)
HSLhsl(229, 100%, 37%)
HSV / HSBhsv(229, 100%, 73%)
CMYKcmyk(100%, 82%, 0%, 27%)

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

About #0022BB

#0022BB is a medium-dark, vivid blue with a hue angle of 229°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 187 (73%) and red the weakest at 0 (0%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#0022BB
Short HEX#02B
RGBrgb(0, 34, 187)
RGB percentrgb(0%, 13.3%, 73.3%)
HSLhsl(229, 100%, 37%)
HSV / HSBhsv(229, 100%, 73%)
CMYKcmyk(100%, 82%, 0%, 27%)
CIELAB (D65)lab(26 51.5 -79.3)
Decimal8891
Binary00000000 00100010 10111011

HEX 00 22 BB → 0, 34, 187 (each pair is a base-16 number: 0×16 + 0 = 0)

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 #0022BB

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #0022BBRatioAA normalAA largeAAA normalAAA large
White text10.79:1PassPassPassPass
Black text1.95:1FailFailFailFail
White text on #0022BB
Black text on #0022BB
#0022BB text on white
#0022BB text on black

Relative luminance is 0.0473 (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
#0046bf

Deuteranopia
#0034b8

Tritanopia
#005470

Achromatopsia
#3d3d3d

People with red–green color blindness see this color almost unchanged (ΔE 4.4 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
mediumblue#0000cd4
blue#0000ff8
darkblue#00008b8.7
navy#00008010

Nearby colors

CSS

.element {
  color: #0022bb;
  background-color: rgb(0, 34, 187);
  border: 1px solid hsl(229, 100%, 37%);
  box-shadow: 0 2px 8px rgb(0 34 187 / 50%);
}
:root { --brand: #0022bb; }

Frequently asked questions

What color is #0022BB?
A medium-dark vivid blue in the blue family. Closest CSS name: mediumblue.
What is #0022BB in RGB?
rgb(0, 34, 187): red 0, green 34, blue 187.
What is the complementary color of #0022BB?
#BB9900, found by rotating the hue 180°.