#304540 Color Information

Hex color code: #304540

The hex color #304540 is a rich cyan with RGB values of (48, 69, 64) and HSL of (166°, 18%, 23%). It is popular in mobile app design.

Try:
Color NameDark Slate Gray
HEX
#304540
RGB
48, 69, 64
HSL
166°, 18%, 23%
CMYK
30%, 0%, 7%, 73%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #304540; 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 #304540; background-color: #30454015; }

Alert / Toast

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

Link / Accent

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

a { color: #304540; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

48, 69, 64

Red: 48 / Green: 69 / Blue: 64

HSL

166°, 18%, 23%

Hue: 166° / Saturation: 18% / Lightness: 23%

CMYK

30%, 0%, 7%, 73%

Cyan: 30% / Magenta: 0% / Yellow: 7% / Key: 73%

What color is #304540?

#304540 is a cyan-blue hue associated with trust and professionalism.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #304540 to RGB:

rgb(48, 69, 64)HEX to RGB Converter →

HEX to HSL

Convert #304540 to HSL:

hsl(166, 18%, 23%)RGB to HSL Converter →

HEX to CMYK

Convert #304540 to CMYK:

cmyk(30%, 0%, 7%, 73%)Color Converter →

Color Meaning and Usage

#304540 is a rich cyan color with RGB values of 48, 69, 64 and HSL of 166°, 18%, 23%. This cyan-blue hue evokes trust and professionalism, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #304540 is #453035, creating high-contrast pairings. For softer combinations, try analogous colors like #304536.

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

Contrast with #304540

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #304540?

#304540 is a rich cyan color - a cyan-blue hue that evokes trust and professionalism.

What is the RGB value of #304540?

#304540 in RGB is (48, 69, 64) - 48 red, 69 green, and 64 blue.

How to use #304540 in CSS?

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

What colors go well with #304540?

#453035 (complementary), #304536 (analogous), and #111816 (lighter shade) work well with #304540.