Skip to content

#2018cf

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

RGB
32, 24, 207
HSL
243°, 79%, 45%
CMYK
85, 88, 0, 19
Luminance
0.0547

Every format

HEX#2018cf
RGBrgb(32, 24, 207)
HSLhsl(243, 79%, 45%)
CMYKcmyk(85%, 88%, 0%, 19%)
LABlab(28.0 62.4 -87.6)
LCHlch(28.0 107.5 305.5)
OKLCHoklch(0.407 0.253 268.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2018cf on white: 10.03:1
AA ✓ pass · AA-large · AAA
Aa
#2018cf on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.5%
Green9.4%
Blue81.2%

CMYK percentages

Cyan84.5%
Magenta88.4%
Yellow0.0%
Key (black)18.8%

Color previews

#2018cf text on a black background

contrast 2.09:1

Card sample

#2018cf text on a white background

contrast 10.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2018cf;
Background color
Panel with #2018cf background
background-color: #2018cf;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(32, 24, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(32, 24, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2018cf;
background: linear-gradient(135deg, #2018cf, #9A18CF);

Monochromatic scale

Palettes built from #2018cf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2018cf in the Color Lab