HEX Color Conversion

Hex Color Code #002AFF — RGB & HSL Conversions

How to use the #002AFF color code in HTML & CSS?

For developers, implementing the #002AFF color code involves declaring it in your styles. In stylesheet designs, use color: #002AFF; for text alignment. If you are developing with utility-first layouts, you can invoke it in Tailwind as text-[#002AFF] or custom configure it in your theme files.

What are the RGB and HSL conversion values for #002AFF?

The RGB code for #002AFF is computed as rgb(0, 42, 255). Web designers using HSL values will find it at a hue of 230°, saturation of 100%, and lightness index of 50%, representing a highly vivid, intense, and brilliant shade.

CMYK print code settings for #002AFF

For print design setups, the CMYK values for the #002AFF color code are Cyan: 100%, Magenta: 84%, Yellow: 0%, and Black: 0%. In digital designs, blue coordinates like this are highly favored by technical and corporate platforms to foster user trust, stability, and clean readability.

Red Channel 0
Green Channel 42
Blue Channel 255
Luminance 0.089

HEX #002AFF Color Space Conversions

Click to copy format
HEX Color Code #002AFF
RGB (Red Green Blue) rgb(0, 42, 255)
HSL (Hue Sat Light) hsl(230°, 100%, 50%)
CMYK (Commercial Print) cmyk(100%, 84%, 0%, 0%)
HSV / HSB Values hsv(230°, 100%, 100%)
Decimal Color Code 11007
CSS Custom Variable --color-hex: #002AFF;
Tailwind CSS Utility bg-[#002AFF]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #002AFF

Small body copy preview

Black Text on Background

Black text readability test with #002AFF

Small body copy preview

Complementary & Analogous Harmonies

Perfect matching color schemes for your designs

Shades & Tints Generator Matrix

Copy shade hex values instantly

Darker Shades (Adding Black)

Lighter Tints (Adding White)

{ } CSS Custom Properties (Variables)

Copy CSS Styles
/* CSS Custom Properties for color #002AFF */
--color-hex: #002AFF;
--color-rgb: rgb(0, 42, 255);
--color-hsl: hsl(230deg, 100%, 50%);

Adjacent HEX Color Codes

Copied!