#0940c3
a dark, electric blue · cool · closest name: slateblue
RGB
9, 64, 195
HSL
222°, 91%, 40%
CMYK
95, 67, 0, 24
Luminance
0.0766
Every format
| HEX | #0940c3 |
| RGB | rgb(9, 64, 195) |
| HSL | hsl(222, 91%, 40%) |
| CMYK | cmyk(95%, 67%, 0%, 24%) |
| LAB | lab(33.3 37.0 -71.9) |
| LCH | lch(33.3 80.8 297.2) |
| OKLCH | oklch(0.439 0.210 263.3) |
Copy-ready code
/* CSS */
color: #0940c3;
background-color: #0940c3;
/* Tailwind (arbitrary) */
class="text-[#0940c3] bg-[#0940c3]"
/* SCSS */
$brand: #0940c3;
/* SwiftUI */
Color(red: 0.035, green: 0.251, blue: 0.765)
/* Android */
Color.parseColor("#0940c3")Accessibility — WCAG contrast
Aa
#0940c3 on white: 8.29:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0940c3 on black: 2.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.5%
Green25.1%
Blue76.5%
CMYK percentages
Cyan95.4%
Magenta67.2%
Yellow0.0%
Key (black)23.5%
Color previews
#0940c3 text on a black background
contrast 2.53:1
Card sample
#0940c3 text on a white background
contrast 8.29:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0940c3;
Background color
Panel with #0940c3 background
background-color: #0940c3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0940c3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(9, 64, 195, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(9, 64, 195, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0940c3; background: linear-gradient(135deg, #0940c3, #4E09C3);