HEX Color Conversion

Hex Color Code #0004BA — RGB & HSL Conversions

How to use the #0004BA color code in HTML & CSS?

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

What are the RGB and HSL conversion values for #0004BA?

The RGB code for #0004BA is computed as rgb(0, 4, 186). Web designers using HSL values will find it at a hue of 239°, saturation of 100%, and lightness index of 36%, representing a highly vivid, intense, and brilliant shade.

CMYK print code settings for #0004BA

For print design setups, the CMYK values for the #0004BA color code are Cyan: 100%, Magenta: 98%, Yellow: 0%, and Black: 27%. 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 4
Blue Channel 186
Luminance 0.036

HEX #0004BA Color Space Conversions

Click to copy format
HEX Color Code #0004BA
RGB (Red Green Blue) rgb(0, 4, 186)
HSL (Hue Sat Light) hsl(239°, 100%, 36%)
CMYK (Commercial Print) cmyk(100%, 98%, 0%, 27%)
HSV / HSB Values hsv(239°, 100%, 73%)
Decimal Color Code 1210
CSS Custom Variable --color-hex: #0004BA;
Tailwind CSS Utility bg-[#0004BA]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #0004BA

Small body copy preview

Black Text on Background

Black text readability test with #0004BA

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 #0004BA */
--color-hex: #0004BA;
--color-rgb: rgb(0, 4, 186);
--color-hsl: hsl(239deg, 100%, 36%);

Adjacent HEX Color Codes

Copied!