Hex Color #2A034F - Custom Color

Color Codes

HEX
#2A034F
RGB
rgb(42, 3, 79)
HSL
hsl(271, 93%, 16%)
CMYK
cmyk(47%, 96%, 0%, 69%)
HSV
hsv(271, 96%, 31%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 17.15:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 1.22:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Recommended Text Color

For best readability on this background color, use white text.

Similar Colors

Color in Use

Card with colored border

Background with 20% opacity

CSS Code

.element {
background-color: #2A034F;
color: #2A034F;
border-color: #2A034F;
}

Tailwind CSS (with arbitrary values)

bg-[#2A034F]
text-[#2A034F]
border-[#2A034F]
// Example usage:
<div className="bg-[#2A034F]">