#002255 color

#002255 is rgb(0, 34, 85) in RGB and hsl(216, 100%, 17%) in HSL. The closest CSS named color is midnightblue (#191970, ΔE 8.1). Use white text on it (contrast 15.44:1).

#002255blue
HEX#002255
Short HEX#025
RGBrgb(0, 34, 85)
RGB percentrgb(0%, 13.3%, 33.3%)
HSLhsl(216, 100%, 17%)
HSV / HSBhsv(216, 100%, 33%)
CMYKcmyk(100%, 60%, 0%, 67%)

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

About #002255

#002255 is a dark, vivid blue with a hue angle of 216°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 85 (33%) and red the weakest at 0 (0%). Colors like this are typically used for dark backgrounds, text, footers and dark-mode surfaces.

Color conversions

HEX#002255
Short HEX#025
RGBrgb(0, 34, 85)
RGB percentrgb(0%, 13.3%, 33.3%)
HSLhsl(216, 100%, 17%)
HSV / HSBhsv(216, 100%, 33%)
CMYKcmyk(100%, 60%, 0%, 67%)
CIELAB (D65)lab(14.4 11.7 -34.1)
Decimal8789
Binary00000000 00100010 01010101

HEX 00 22 55 → 0, 34, 85 (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 #002255

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #002255RatioAA normalAA largeAAA normalAAA large
White text15.44:1PassPassPassPass
Black text1.36:1FailFailFailFail
White text on #002255
Black text on #002255
#002255 text on white
#002255 text on black

Relative luminance is 0.0180 (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
#002857

Deuteranopia
#002154

Tritanopia
#002f37

Achromatopsia
#242424

People with red–green color blindness see this color almost unchanged (ΔE 0.3 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
midnightblue#1919708.1
navy#00008012.8
darkblue#00008b13.4
darkslateblue#483d8b13.4

Nearby colors

CSS

.element {
  color: #002255;
  background-color: rgb(0, 34, 85);
  border: 1px solid hsl(216, 100%, 17%);
  box-shadow: 0 2px 8px rgb(0 34 85 / 50%);
}
:root { --brand: #002255; }

Frequently asked questions

What color is #002255?
A dark vivid blue in the blue family. Closest CSS name: midnightblue.
What is #002255 in RGB?
rgb(0, 34, 85): red 0, green 34, blue 85.
What is the complementary color of #002255?
#553300, found by rotating the hue 180°.