Web Safe Color Chart

Complete list of all 216 web safe colors with hex codes, RGB values, color picker, palette generator, and contrast checker.

What are Web Safe Colors? Web safe colors are 216 colors that display consistently across all browsers and devices. They consist of hexadecimal values 00, 33, 66, 99, CC, and FF for each RGB component (6×6×6 = 216 colors).

Hex Code:
#336699
RGB:
rgb(51, 102, 153)
HSL:
hsl(210, 50%, 40%)
CMYK:
cmyk(67%, 33%, 0%, 40%)
Color Name:
Queen Blue
Showing 216 of 216 colors
Color Hex Code RGB Values HSL Values Color Name Actions

Color Picker & Custom Color

Hue 360°
0% Saturation 100%
0% Lightness 100%

Color Palette Generator

Create custom color palettes from selected colors

Understanding Web Safe Colors

Web safe colors, also known as browser safe colors, consist of 216 colors that display consistently across different browsers, operating systems, and devices. These colors are especially important for ensuring visual consistency in web design.

Why Web Safe Colors Matter:

  • Cross-browser compatibility: Display consistently on all browsers
  • Device consistency: Look the same on different monitors and devices
  • Reduced dithering: Prevent color dithering on 8-bit displays
  • Accessibility: Ensure sufficient color contrast for readability

How Web Safe Colors Work

Web safe colors are created using hexadecimal values that are multiples of 33 (in decimal: 0, 51, 102, 153, 204, 255). This creates 6 possible values for each RGB component:

1

Red, Green, Blue Components: Each color channel (R, G, B) can have one of these 6 values: 00, 33, 66, 99, CC, FF (hexadecimal) which correspond to 0, 51, 102, 153, 204, 255 in decimal.

2

Total Combinations: With 6 possible values for each of the 3 color channels, the total number of web safe colors is 6 × 6 × 6 = 216 colors.

3

Mathematical Formula: Any web safe color can be represented as RGB(r, g, b) where r, g, b ∈ {0, 51, 102, 153, 204, 255}.

Frequently Asked Questions

With modern displays and browsers supporting millions of colors, strict adherence to web safe colors is less critical. However, they can still be useful for ensuring consistency across different devices and platforms, especially for important brand colors or when designing for audiences that may use older technology.

To find the nearest web safe color, round each RGB component to the nearest multiple of 51 (0, 51, 102, 153, 204, 255). Our calculator includes a "Find Nearest Web Safe" button that does this automatically for any color you choose.