Skip to content

#34309c

a dark, vivid blue · warm · closest name: midnightblue

RGB
52, 48, 156
HSL
242°, 53%, 40%
CMYK
67, 69, 0, 39
Luminance
0.0524

Every format

HEX#34309c
RGBrgb(52, 48, 156)
HSLhsl(242, 53%, 40%)
CMYKcmyk(67%, 69%, 0%, 39%)
LABlab(27.4 36.2 -58.1)
LCHlch(27.4 68.5 301.9)
OKLCHoklch(0.390 0.169 276.8)

Copy-ready code

/* CSS */
color: #34309c;
background-color: #34309c;
/* Tailwind (arbitrary) */
class="text-[#34309c] bg-[#34309c]"
/* SCSS */
$brand: #34309c;
/* SwiftUI */
Color(red: 0.204, green: 0.188, blue: 0.612)
/* Android */
Color.parseColor("#34309c")

Accessibility — WCAG contrast

Aa
#34309c on white: 10.25:1
AA ✓ pass · AA-large · AAA
Aa
#34309c on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.4%
Green18.8%
Blue61.2%

CMYK percentages

Cyan66.7%
Magenta69.2%
Yellow0.0%
Key (black)38.8%

Color previews

#34309c text on a black background

contrast 2.05:1

Card sample

#34309c text on a white background

contrast 10.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #34309c;
Background color
Panel with #34309c background
background-color: #34309c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #34309c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(52, 48, 156, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 48, 156, 0.45);
Border & gradient
Gradient panel
border: 3px solid #34309c;
background: linear-gradient(135deg, #34309c, #7C309C);

Monochromatic scale

Palettes built from #34309c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #34309c in the Color Lab