#302faf
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 | #302faf | |
| RGB | rgb(48 47 175) | |
| HSL | hsl(240.47 57.66% 43.53%) | |
| OKLCH | oklch(0.4 0.2 273.67) | |
| CMYK | cmyk(72.57% 73.14% 0% 31.37%) | |
| Android | #ff302faf |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
9.76:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.15: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="#302faf"
Gradient stop
<stop stop-color="#302faf"/>
CSS variable + fill
:root { --c: #302faf; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #302faf; background-color: #302faf; bg-[#302faf]