#4157fb
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 | #4157fb | |
| RGB | rgb(65 87 251) | |
| HSL | hsl(232.9 95.88% 61.96%) | |
| OKLCH | oklch(0.55 0.24 270.04) | |
| CMYK | cmyk(74.1% 65.34% 0% 1.57%) | |
| Android | #ff4157fb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.27:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.98: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="#4157fb"
Gradient stop
<stop stop-color="#4157fb"/>
CSS variable + fill
:root { --c: #4157fb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #4157fb; background-color: #4157fb; bg-[#4157fb]