Hex Color #151218 - Custom Color
Color Codes
HEX
#151218
RGB
rgb(21, 18, 24)
HSL
hsl(270, 14%, 8%)
CMYK
cmyk(12%, 25%, 0%, 91%)
HSV
hsv(270, 25%, 9%)
Color Name
Custom Color
Color Variations
Color Harmonies
Accessibility
WCAG Contrast Ratios
Text on White Background
Sample Text
Contrast Ratio: 18.56:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)
Text on Black Background
Sample Text
Contrast Ratio: 1.13: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: #151218;
color: #151218;
border-color: #151218;
}
Tailwind CSS (with arbitrary values)
bg-[#151218]
text-[#151218]
border-[#151218]
// Example usage:
<div className="bg-[#151218]">