#271f69
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 | #271f69 | |
| RGB | rgb(39 31 105) | |
| HSL | hsl(246.49 54.41% 26.67%) | |
| OKLCH | oklch(0.3 0.12 280.88) | |
| CMYK | cmyk(62.86% 70.48% 0% 58.82%) | |
| Android | #ff271f69 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
14.12:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.48: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="#271f69"
Gradient stop
<stop stop-color="#271f69"/>
CSS variable + fill
:root { --c: #271f69; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #271f69; background-color: #271f69; bg-[#271f69]