Hex Color #21336D - Custom Color

Color Codes

HEX
#21336D
RGB
rgb(33, 51, 109)
HSL
hsl(226, 54%, 28%)
CMYK
cmyk(70%, 53%, 0%, 57%)
HSV
hsv(226, 70%, 43%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 1.76: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: #21336D;
color: #21336D;
border-color: #21336D;
}

Tailwind CSS (with arbitrary values)

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