#311683
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #311683 | |
| RGB | rgb(49 22 131) | |
| HSL | hsl(254.86 71.24% 30%) | |
| OKLCH | oklch(0.33 0.17 283.67) | |
| CMYK | cmyk(62.6% 83.21% 0% 48.63%) | |
| Android | #ff311683 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
13.34:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.57:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#311683"
Gradient stop
<stop stop-color="#311683"/>
CSS variable + fill
:root { --c: #311683; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #311683; background-color: #311683; bg-[#311683]