Skip to content

#40f2ff

a balanced, electric cyan · cool · closest name: cyan

RGB
64, 242, 255
HSL
184°, 100%, 63%
CMYK
75, 5, 0, 0
Luminance
0.7181

Every format

HEX#40f2ff
RGBrgb(64, 242, 255)
HSLhsl(184, 100%, 63%)
CMYKcmyk(75%, 5%, 0%, 0%)
LABlab(87.9 -39.0 -18.9)
LCHlch(87.9 43.4 205.9)
OKLCHoklch(0.881 0.138 202.5)

Copy-ready code

/* CSS */
color: #40f2ff;
background-color: #40f2ff;
/* Tailwind (arbitrary) */
class="text-[#40f2ff] bg-[#40f2ff]"
/* SCSS */
$brand: #40f2ff;
/* SwiftUI */
Color(red: 0.251, green: 0.949, blue: 1.000)
/* Android */
Color.parseColor("#40f2ff")

Accessibility — WCAG contrast

Aa
#40f2ff on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#40f2ff on black: 15.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green94.9%
Blue100.0%

CMYK percentages

Cyan74.9%
Magenta5.1%
Yellow0.0%
Key (black)0.0%

Color previews

#40f2ff text on a black background

contrast 15.36:1

Card sample

#40f2ff text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40f2ff;
Background color
Panel with #40f2ff background
background-color: #40f2ff;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 242, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 242, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40f2ff;
background: linear-gradient(135deg, #40f2ff, #4072FF);

Monochromatic scale

Palettes built from #40f2ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40f2ff in the Color Lab