HEX Color Conversion

Hex Color Code #02097F — RGB & HSL Conversions

How to use the #02097F color code in HTML & CSS?

To apply the hex color #02097F in web design, set the color property inside your CSS stylesheet. For example, adding background-color: #02097F; will paint elements in this cool undertone shade. In modern CSS structures, you can configure it as a custom variable --color-hex: #02097F; or utilize it directly in Tailwind CSS via arbitrary utility values like bg-[#02097F].

What are the RGB and HSL conversion values for #02097F?

In the digital sRGB color space, the hex value #02097F is converted to RGB values of Red: 2, Green: 9, and Blue: 127. When analyzed under the HSL model, its coordinates correspond to hue angle 237°, 97% saturation, and 25% lightness. This makes it visually a dark, rich color with a highly vivid, intense, and brilliant shade.

CMYK print code settings for #02097F

When converting #02097F for CMYK printing, the color separation consists of 98% Cyan, 93% Magenta, 0% Yellow, and 50% key/black. 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 2
Green Channel 9
Blue Channel 127
Luminance 0.017

HEX #02097F Color Space Conversions

Click to copy format
HEX Color Code #02097F
RGB (Red Green Blue) rgb(2, 9, 127)
HSL (Hue Sat Light) hsl(237°, 97%, 25%)
CMYK (Commercial Print) cmyk(98%, 93%, 0%, 50%)
HSV / HSB Values hsv(237°, 98%, 50%)
Decimal Color Code 133503
CSS Custom Variable --color-hex: #02097F;
Tailwind CSS Utility bg-[#02097F]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #02097F

Small body copy preview

Black Text on Background

Black text readability test with #02097F

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 #02097F */
--color-hex: #02097F;
--color-rgb: rgb(2, 9, 127);
--color-hsl: hsl(237deg, 97%, 25%);

Adjacent HEX Color Codes

Copied!