#270C7D Color Information

Hex color code: #270C7D

The hex color #270C7D is a vivid blue with RGB values of (39, 12, 125) and HSL of (254°, 82%, 27%). It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#270C7D
RGB
39, 12, 125
HSL
254°, 82%, 27%
CMYK
69%, 90%, 0%, 51%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #270C7D; 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 #270C7D; background-color: #270C7D15; }

Alert / Toast

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

Link / Accent

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

a { color: #270C7D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #270C7D in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

39, 12, 125

Red: 39 / Green: 12 / Blue: 125

HSL

254°, 82%, 27%

Hue: 254° / Saturation: 82% / Lightness: 27%

CMYK

69%, 90%, 0%, 51%

Cyan: 69% / Magenta: 90% / Yellow: 0% / Key: 51%

What color is #270C7D?

#270C7D is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #270C7D to RGB:

rgb(39, 12, 125)HEX to RGB Converter →

HEX to HSL

Convert #270C7D to HSL:

hsl(254, 82%, 27%)RGB to HSL Converter →

HEX to CMYK

Convert #270C7D to CMYK:

cmyk(69%, 90%, 0%, 51%)Color Converter →

Color Meaning and Usage

A dynamic blue tone, #270C7D has RGB (39, 12, 125) and HSL (254°, 82%, 27%). Known for evoking energy and excitement, this highly saturated hue is frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #270C7D is #637D0C, creating high-contrast pairings. For softer combinations, try analogous colors like #0C2B7D.

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

Contrast with #270C7D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #270C7D?

#270C7D is a dynamic blue color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #270C7D?

#270C7D in RGB is (39, 12, 125) - 39 red, 12 green, and 125 blue.

How to use #270C7D in CSS?

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

What colors go well with #270C7D?

#637D0C (complementary), #0C2B7D (analogous), and #110638 (lighter shade) work well with #270C7D.