#1f07cf
a dark, electric blue · warm · closest name: blue
RGB
31, 7, 207
HSL
247°, 94%, 42%
CMYK
85, 97, 0, 19
Luminance
0.0495
Every format
| HEX | #1f07cf |
| RGB | rgb(31, 7, 207) |
| HSL | hsl(247, 94%, 42%) |
| CMYK | cmyk(85%, 97%, 0%, 19%) |
| LAB | lab(26.6 66.6 -90.0) |
| LCH | lch(26.6 111.9 306.5) |
| OKLCH | oklch(0.398 0.260 268.5) |
Copy-ready code
/* CSS */
color: #1f07cf;
background-color: #1f07cf;
/* Tailwind (arbitrary) */
class="text-[#1f07cf] bg-[#1f07cf]"
/* SCSS */
$brand: #1f07cf;
/* SwiftUI */
Color(red: 0.122, green: 0.027, blue: 0.812)
/* Android */
Color.parseColor("#1f07cf")Accessibility — WCAG contrast
Aa
#1f07cf on white: 10.55:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#1f07cf on black: 1.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red12.2%
Green2.7%
Blue81.2%
CMYK percentages
Cyan85.0%
Magenta96.6%
Yellow0.0%
Key (black)18.8%
Color previews
#1f07cf text on a black background
contrast 1.99:1
Card sample
#1f07cf text on a white background
contrast 10.55:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1f07cf;
Background color
Panel with #1f07cf background
background-color: #1f07cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1f07cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(31, 7, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 7, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f07cf; background: linear-gradient(135deg, #1f07cf, #A507CF);