#313c68
a dark, soft blue · warm · closest name: steelblue
RGB
49, 60, 104
HSL
228°, 36%, 30%
CMYK
53, 42, 0, 59
Luminance
0.0488
Every format
| HEX | #313c68 |
| RGB | rgb(49, 60, 104) |
| HSL | hsl(228, 36%, 30%) |
| CMYK | cmyk(53%, 42%, 0%, 59%) |
| LAB | lab(26.4 9.2 -27.2) |
| LCH | lch(26.4 28.8 288.7) |
| OKLCH | oklch(0.369 0.077 271.6) |
Copy-ready code
/* CSS */
color: #313c68;
background-color: #313c68;
/* Tailwind (arbitrary) */
class="text-[#313c68] bg-[#313c68]"
/* SCSS */
$brand: #313c68;
/* SwiftUI */
Color(red: 0.192, green: 0.235, blue: 0.408)
/* Android */
Color.parseColor("#313c68")Accessibility — WCAG contrast
Aa
#313c68 on white: 10.62:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#313c68 on black: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green23.5%
Blue40.8%
CMYK percentages
Cyan52.9%
Magenta42.3%
Yellow0.0%
Key (black)59.2%
Color previews
#313c68 text on a black background
contrast 1.98:1
Card sample
#313c68 text on a white background
contrast 10.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #313c68;
Background color
Panel with #313c68 background
background-color: #313c68;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #313c68;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 60, 104, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 60, 104, 0.45);
Border & gradient
Gradient panel
border: 3px solid #313c68; background: linear-gradient(135deg, #313c68, #4B3168);