#140fd2
a dark, electric blue · warm · closest name: blue
RGB
20, 15, 210
HSL
242°, 87%, 44%
CMYK
91, 93, 0, 18
Luminance
0.0514
Every format
| HEX | #140fd2 |
| RGB | rgb(20, 15, 210) |
| HSL | hsl(242, 87%, 44%) |
| CMYK | cmyk(91%, 93%, 0%, 18%) |
| LAB | lab(27.1 65.5 -90.8) |
| LCH | lch(27.1 112.0 305.8) |
| OKLCH | oklch(0.401 0.263 266.4) |
Copy-ready code
/* CSS */
color: #140fd2;
background-color: #140fd2;
/* Tailwind (arbitrary) */
class="text-[#140fd2] bg-[#140fd2]"
/* SCSS */
$brand: #140fd2;
/* SwiftUI */
Color(red: 0.078, green: 0.059, blue: 0.824)
/* Android */
Color.parseColor("#140fd2")Accessibility — WCAG contrast
Aa
#140fd2 on white: 10.35:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#140fd2 on black: 2.03:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red7.8%
Green5.9%
Blue82.4%
CMYK percentages
Cyan90.5%
Magenta92.9%
Yellow0.0%
Key (black)17.6%
Color previews
#140fd2 text on a black background
contrast 2.03:1
Card sample
#140fd2 text on a white background
contrast 10.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #140fd2;
Background color
Panel with #140fd2 background
background-color: #140fd2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #140fd2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(20, 15, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(20, 15, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #140fd2; background: linear-gradient(135deg, #140fd2, #960FD2);