Hex Color #402CBE - Custom Color

Color Codes

HEX
#402CBE
RGB
rgb(64, 44, 190)
HSL
hsl(248, 62%, 46%)
CMYK
cmyk(66%, 77%, 0%, 25%)
HSV
hsv(248, 77%, 75%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 2.32: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: #402CBE;
color: #402CBE;
border-color: #402CBE;
}

Tailwind CSS (with arbitrary values)

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