#2e7fea
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 | #2e7fea | |
| RGB | rgb(46 127 234) | |
| HSL | hsl(214.15 81.74% 54.9%) | |
| OKLCH | oklch(0.6 0.18 257.02) | |
| CMYK | cmyk(80.34% 45.73% 0% 8.24%) | |
| Android | #ff2e7fea |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.93:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.34: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="#2e7fea"
Gradient stop
<stop stop-color="#2e7fea"/>
CSS variable + fill
:root { --c: #2e7fea; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #2e7fea; background-color: #2e7fea; bg-[#2e7fea]