#3a2f68
a dark, soft blue · warm · closest name: midnightblue
RGB
58, 47, 104
HSL
252°, 38%, 30%
CMYK
44, 55, 0, 59
Luminance
0.0393
Every format
| HEX | #3a2f68 |
| RGB | rgb(58, 47, 104) |
| HSL | hsl(252, 38%, 30%) |
| CMYK | cmyk(44%, 55%, 0%, 59%) |
| LAB | lab(23.4 20.5 -31.9) |
| LCH | lch(23.4 37.9 302.7) |
| OKLCH | oklch(0.348 0.096 289.3) |
Copy-ready code
/* CSS */
color: #3a2f68;
background-color: #3a2f68;
/* Tailwind (arbitrary) */
class="text-[#3a2f68] bg-[#3a2f68]"
/* SCSS */
$brand: #3a2f68;
/* SwiftUI */
Color(red: 0.227, green: 0.184, blue: 0.408)
/* Android */
Color.parseColor("#3a2f68")Accessibility — WCAG contrast
Aa
#3a2f68 on white: 11.76:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3a2f68 on black: 1.79:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red22.7%
Green18.4%
Blue40.8%
CMYK percentages
Cyan44.2%
Magenta54.8%
Yellow0.0%
Key (black)59.2%
Color previews
#3a2f68 text on a black background
contrast 1.79:1
Card sample
#3a2f68 text on a white background
contrast 11.76:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3a2f68;
Background color
Panel with #3a2f68 background
background-color: #3a2f68;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3a2f68;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(58, 47, 104, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(58, 47, 104, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3a2f68; background: linear-gradient(135deg, #3a2f68, #602F68);