#3311cc
a dark, electric blue · warm · closest name: blue
RGB
51, 17, 204
HSL
251°, 85%, 43%
CMYK
75, 92, 0, 20
Luminance
0.0546
Every format
| HEX | #3311cc |
| RGB | rgb(51, 17, 204) |
| HSL | hsl(251, 85%, 43%) |
| CMYK | cmyk(75%, 92%, 0%, 20%) |
| LAB | lab(28.0 64.3 -85.8) |
| LCH | lch(28.0 107.2 306.8) |
| OKLCH | oklch(0.409 0.248 274.1) |
Copy-ready code
/* CSS */
color: #3311cc;
background-color: #3311cc;
/* Tailwind (arbitrary) */
class="text-[#3311cc] bg-[#3311cc]"
/* SCSS */
$brand: #3311cc;
/* SwiftUI */
Color(red: 0.200, green: 0.067, blue: 0.800)
/* Android */
Color.parseColor("#3311cc")Accessibility — WCAG contrast
Aa
#3311cc on white: 10.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3311cc on black: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green6.7%
Blue80.0%
CMYK percentages
Cyan75.0%
Magenta91.7%
Yellow0.0%
Key (black)20.0%
Color previews
#3311cc text on a black background
contrast 2.09:1
Card sample
#3311cc text on a white background
contrast 10.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3311cc;
Background color
Panel with #3311cc background
background-color: #3311cc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3311cc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 17, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 17, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3311cc; background: linear-gradient(135deg, #3311cc, #AF11CC);