#335fa7
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 | #335fa7 | |
| RGB | rgb(51 95 167) | |
| HSL | hsl(217.24 53.21% 42.75%) | |
| OKLCH | oklch(0.49 0.13 259.75) | |
| CMYK | cmyk(69.46% 43.11% 0% 34.51%) | |
| Android | #ff335fa7 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
6.29:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.33: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="#335fa7"
Gradient stop
<stop stop-color="#335fa7"/>
CSS variable + fill
:root { --c: #335fa7; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #335fa7; background-color: #335fa7; bg-[#335fa7]