#0c28cf
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 | #0c28cf | |
| RGB | rgb(12 40 207) | |
| HSL | hsl(231.38 89.04% 42.94%) | |
| OKLCH | oklch(0.42 0.25 265.18) | |
| CMYK | cmyk(94.2% 80.68% 0% 18.82%) | |
| Android | #ff0c28cf |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
9.45:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.22: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="#0c28cf"
Gradient stop
<stop stop-color="#0c28cf"/>
CSS variable + fill
:root { --c: #0c28cf; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #0c28cf; background-color: #0c28cf; bg-[#0c28cf]