Skip to content

#2018af

a dark, electric blue · warm · closest name: navy

RGB
32, 24, 175
HSL
243°, 76%, 39%
CMYK
82, 86, 0, 31
Luminance
0.0406

Every format

HEX#2018af
RGBrgb(32, 24, 175)
HSLhsl(243, 76%, 39%)
CMYKcmyk(82%, 86%, 0%, 31%)
LABlab(23.9 53.2 -75.6)
LCHlch(23.9 92.4 305.1)
OKLCHoklch(0.367 0.219 270.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2018af on white: 11.60:1
AA ✓ pass · AA-large · AAA
Aa
#2018af on black: 1.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.5%
Green9.4%
Blue68.6%

CMYK percentages

Cyan81.7%
Magenta86.3%
Yellow0.0%
Key (black)31.4%

Color previews

#2018af text on a black background

contrast 1.81:1

Card sample

#2018af text on a white background

contrast 11.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2018af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2018af in the Color Lab