#2897eb
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 | #2897eb | |
| RGB | rgb(40 151 235) | |
| HSL | hsl(205.85 82.98% 53.92%) | |
| OKLCH | oklch(0.66 0.16 246.96) | |
| CMYK | cmyk(82.98% 35.74% 0% 7.84%) | |
| Android | #ff2897eb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.12:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.71:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#2897eb"
Gradient stop
<stop stop-color="#2897eb"/>
CSS variable + fill
:root { --c: #2897eb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #2897eb; background-color: #2897eb; bg-[#2897eb]