#002142 Color Information

Hex color code: #002142

#002142 is a dark blue color. In RGB it is (0, 33, 66), and in HSL it is (210°, 100%, 13%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#002142
RGB
0, 33, 66
HSL
210°, 100%, 13%
CMYK
100%, 50%, 0%, 74%

Shades

CSS Usage
color: #002142;
background-color: #002142;
border-color: #002142;
box-shadow: 0 0 10px #002142;
border: 2px solid #002142;
Tailwind Usage
bg-[#002142]
text-[#002142]
border-[#002142]
shadow-[0_0_10px_002142]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #002142, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #002142; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #002142; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #002142; background-color: #00214215; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #00214220; border-left: 4px solid #002142; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #002142; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #002142 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

0, 33, 66

Red: 0 / Green: 33 / Blue: 66

HSL

210°, 100%, 13%

Hue: 210° / Saturation: 100% / Lightness: 13%

CMYK

100%, 50%, 0%, 74%

Cyan: 100% / Magenta: 50% / Yellow: 0% / Key: 74%

What color is #002142?

#002142 is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #002142 to RGB:

rgb(0, 33, 66)HEX to RGB Converter →

HEX to HSL

Convert #002142 to HSL:

hsl(210, 100%, 13%)RGB to HSL Converter →

HEX to CMYK

Convert #002142 to CMYK:

cmyk(100%, 50%, 0%, 74%)Color Converter →

Color Meaning and Usage

A deep blue tone, #002142 has RGB (0, 33, 66) and HSL (210°, 100%, 13%). Known for evoking sophistication and elegance, this very dark shade is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #002142 is #422100, creating high-contrast pairings. For softer combinations, try analogous colors like #004242.

Use #002142 in CSS: color: #002142 or background-color: #002142. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #002142

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.30:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #002142?

#002142 is a deep blue color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #002142?

#002142 in RGB is (0, 33, 66) - 0 red, 33 green, and 66 blue.

How to use #002142 in CSS?

Use #002142 directly in your CSS properties like color or background-color.

What colors go well with #002142?

#422100 (complementary), #004242 (analogous), and #000000 (lighter shade) work well with #002142.