Skip to content

#343af4

a balanced, electric blue · warm · closest name: blue

RGB
52, 58, 244
HSL
238°, 90%, 58%
CMYK
79, 76, 0, 4
Luminance
0.1029

Every format

HEX#343af4
RGBrgb(52, 58, 244)
HSLhsl(238, 90%, 58%)
CMYKcmyk(79%, 76%, 0%, 4%)
LABlab(38.4 59.4 -91.5)
LCHlch(38.4 109.1 303.0)
OKLCHoklch(0.494 0.265 270.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#343af4 on white: 6.87:1
AA ✓ pass · AA-large · AAA
Aa
#343af4 on black: 3.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red20.4%
Green22.7%
Blue95.7%

CMYK percentages

Cyan78.7%
Magenta76.2%
Yellow0.0%
Key (black)4.3%

Color previews

#343af4 text on a black background

contrast 3.06:1

Card sample

#343af4 text on a white background

contrast 6.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #343af4;
Background color
Panel with #343af4 background
background-color: #343af4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #343af4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(52, 58, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 58, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #343af4;
background: linear-gradient(135deg, #343af4, #AE34F4);

Monochromatic scale

Palettes built from #343af4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #343af4 in the Color Lab