Skip to content

#342abc

a balanced, vivid blue · warm · closest name: navy

RGB
52, 42, 188
HSL
244°, 64%, 45%
CMYK
72, 78, 0, 26
Luminance
0.0602

Every format

HEX#342abc
RGBrgb(52, 42, 188)
HSLhsl(244, 64%, 45%)
CMYKcmyk(72%, 78%, 0%, 26%)
LABlab(29.4 50.1 -74.0)
LCHlch(29.4 89.3 304.1)
OKLCHoklch(0.414 0.215 274.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#342abc on white: 9.53:1
AA ✓ pass · AA-large · AAA
Aa
#342abc on black: 2.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.4%
Green16.5%
Blue73.7%

CMYK percentages

Cyan72.3%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#342abc text on a black background

contrast 2.20:1

Card sample

#342abc text on a white background

contrast 9.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #342abc;
Background color
Panel with #342abc background
background-color: #342abc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #342abc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(52, 42, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 42, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #342abc;
background: linear-gradient(135deg, #342abc, #952ABC);

Monochromatic scale

Palettes built from #342abc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #342abc in the Color Lab