Skip to content

#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
RGBrgb(49, 58, 206)
HSLhsl(237, 62%, 50%)
CMYKcmyk(76%, 72%, 0%, 19%)
LABlab(34.3 46.9 -76.6)
LCHlch(34.3 89.8 301.5)
OKLCHoklch(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);

Monochromatic scale

Palettes built from #313ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #313ace in the Color Lab