#0a047e
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 | #0a047e | |
| RGB | rgb(10 4 126) | |
| HSL | hsl(242.95 93.85% 25.49%) | |
| OKLCH | oklch(0.28 0.18 267.09) | |
| CMYK | cmyk(92.06% 96.83% 0% 50.59%) | |
| Android | #ff0a047e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
15.77:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.33: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="#0a047e"
Gradient stop
<stop stop-color="#0a047e"/>
CSS variable + fill
:root { --c: #0a047e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #0a047e; background-color: #0a047e; bg-[#0a047e]