Hex Color #040D2E - Custom Color

Color Codes

HEX
#040D2E
RGB
rgb(4, 13, 46)
HSL
hsl(227, 84%, 10%)
CMYK
cmyk(91%, 72%, 0%, 82%)
HSV
hsv(227, 91%, 18%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

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

Text on Black Background

Sample Text

Contrast Ratio: 1.10: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: #040D2E;
color: #040D2E;
border-color: #040D2E;
}

Tailwind CSS (with arbitrary values)

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