Hex Color #304FAA - Custom Color

Color Codes

HEX
#304FAA
RGB
rgb(48, 79, 170)
HSL
hsl(225, 56%, 43%)
CMYK
cmyk(72%, 54%, 0%, 33%)
HSV
hsv(225, 72%, 67%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 2.82: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: #304FAA;
color: #304FAA;
border-color: #304FAA;
}

Tailwind CSS (with arbitrary values)

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