Hex Color #515279 - Custom Color

Color Codes

HEX
#515279
RGB
rgb(81, 82, 121)
HSL
hsl(239, 20%, 40%)
CMYK
cmyk(33%, 32%, 0%, 53%)
HSV
hsv(239, 33%, 47%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 2.83: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: #515279;
color: #515279;
border-color: #515279;
}

Tailwind CSS (with arbitrary values)

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