#313f90
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 | #313f90 | |
| RGB | rgb(49 63 144) | |
| HSL | hsl(231.16 49.22% 37.84%) | |
| OKLCH | oklch(0.4 0.13 271.68) | |
| CMYK | cmyk(65.97% 56.25% 0% 43.53%) | |
| Android | #ff313f90 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
9.35:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.24: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="#313f90"
Gradient stop
<stop stop-color="#313f90"/>
CSS variable + fill
:root { --c: #313f90; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #313f90; background-color: #313f90; bg-[#313f90]