#0f229e
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 | #0f229e | |
| RGB | rgb(15 34 158) | |
| HSL | hsl(232.03 82.66% 33.92%) | |
| OKLCH | oklch(0.35 0.2 266.29) | |
| CMYK | cmyk(90.51% 78.48% 0% 38.04%) | |
| Android | #ff0f229e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
12.04:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.74: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="#0f229e"
Gradient stop
<stop stop-color="#0f229e"/>
CSS variable + fill
:root { --c: #0f229e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #0f229e; background-color: #0f229e; bg-[#0f229e]