Skip to content

#2f75cf

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

RGB
47, 117, 207
HSL
214°, 63%, 50%
CMYK
77, 44, 0, 19
Luminance
0.1783

Every format

HEX#2f75cf
RGBrgb(47, 117, 207)
HSLhsl(214, 63%, 50%)
CMYKcmyk(77%, 44%, 0%, 19%)
LABlab(49.3 9.9 -52.7)
LCHlch(49.3 53.6 280.6)
OKLCHoklch(0.566 0.155 256.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f75cf on white: 4.60:1
AA ✓ pass · AA-large · AAA
Aa
#2f75cf on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green45.9%
Blue81.2%

CMYK percentages

Cyan77.3%
Magenta43.5%
Yellow0.0%
Key (black)18.8%

Color previews

#2f75cf text on a black background

contrast 4.57:1

Card sample

#2f75cf text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 117, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 117, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f75cf;
background: linear-gradient(135deg, #2f75cf, #542FCF);

Monochromatic scale

Palettes built from #2f75cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f75cf in the Color Lab