#313fb1
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 | #313fb1 | |
| RGB | rgb(49 63 177) | |
| HSL | hsl(233.44 56.64% 44.31%) | |
| OKLCH | oklch(0.43 0.18 271.18) | |
| CMYK | cmyk(72.32% 64.41% 0% 30.59%) | |
| Android | #ff313fb1 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
8.47:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.47: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="#313fb1"
Gradient stop
<stop stop-color="#313fb1"/>
CSS variable + fill
:root { --c: #313fb1; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #313fb1; background-color: #313fb1; bg-[#313fb1]