#335c8e
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 | #335c8e | |
| RGB | rgb(51 92 142) | |
| HSL | hsl(212.97 47.15% 37.84%) | |
| OKLCH | oklch(0.47 0.09 254.42) | |
| CMYK | cmyk(64.08% 35.21% 0% 44.31%) | |
| Android | #ff335c8e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
6.85:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.06:1
Fail AA normal text
Pass 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="#335c8e"
Gradient stop
<stop stop-color="#335c8e"/>
CSS variable + fill
:root { --c: #335c8e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #335c8e; background-color: #335c8e; bg-[#335c8e]