#313ace
a balanced, vivid blue · warm · closest name: slateblue
RGB
49, 58, 206
HSL
237°, 62%, 50%
CMYK
76, 72, 0, 19
Luminance
0.0814
Every format
| HEX | #313ace |
| RGB | rgb(49, 58, 206) |
| HSL | hsl(237, 62%, 50%) |
| CMYK | cmyk(76%, 72%, 0%, 19%) |
| LAB | lab(34.3 46.9 -76.6) |
| LCH | lch(34.3 89.8 301.5) |
| OKLCH | oklch(0.453 0.222 270.9) |
Copy-ready code
/* CSS */
color: #313ace;
background-color: #313ace;
/* Tailwind (arbitrary) */
class="text-[#313ace] bg-[#313ace]"
/* SCSS */
$brand: #313ace;
/* SwiftUI */
Color(red: 0.192, green: 0.227, blue: 0.808)
/* Android */
Color.parseColor("#313ace")Accessibility — WCAG contrast
Aa
#313ace on white: 7.99:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#313ace on black: 2.63:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green22.7%
Blue80.8%
CMYK percentages
Cyan76.2%
Magenta71.8%
Yellow0.0%
Key (black)19.2%
Color previews
#313ace text on a black background
contrast 2.63:1
Card sample
#313ace text on a white background
contrast 7.99:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #313ace;
Background color
Panel with #313ace background
background-color: #313ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #313ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 58, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 58, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #313ace; background: linear-gradient(135deg, #313ace, #9131CE);