Skip to content

#2ba2f4

a balanced, electric blue · cool · closest name: dodgerblue

RGB
43, 162, 244
HSL
205°, 90%, 56%
CMYK
82, 34, 0, 4
Luminance
0.3289

Every format

HEX#2ba2f4
RGBrgb(43, 162, 244)
HSLhsl(205, 90%, 56%)
CMYKcmyk(82%, 34%, 0%, 4%)
LABlab(64.1 -3.8 -49.9)
LCHlch(64.1 50.0 265.7)
OKLCHoklch(0.687 0.157 244.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ba2f4 on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#2ba2f4 on black: 7.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.9%
Green63.5%
Blue95.7%

CMYK percentages

Cyan82.4%
Magenta33.6%
Yellow0.0%
Key (black)4.3%

Color previews

#2ba2f4 text on a black background

contrast 7.58:1

Card sample

#2ba2f4 text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2ba2f4;
Background color
Panel with #2ba2f4 background
background-color: #2ba2f4;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 162, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 162, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2ba2f4;
background: linear-gradient(135deg, #2ba2f4, #3A2BF4);

Monochromatic scale

Palettes built from #2ba2f4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ba2f4 in the Color Lab