Skip to content

#240cfd

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

RGB
36, 12, 253
HSL
246°, 98%, 52%
CMYK
86, 95, 0, 1
Luminance
0.0773

Every format

HEX#240cfd
RGBrgb(36, 12, 253)
HSLhsl(246, 98%, 52%)
CMYKcmyk(86%, 95%, 0%, 1%)
LABlab(33.4 77.2 -104.9)
LCHlch(33.4 130.2 306.4)
OKLCHoklch(0.461 0.303 267.8)

Copy-ready code

/* CSS */
color: #240cfd;
background-color: #240cfd;
/* Tailwind (arbitrary) */
class="text-[#240cfd] bg-[#240cfd]"
/* SCSS */
$brand: #240cfd;
/* SwiftUI */
Color(red: 0.141, green: 0.047, blue: 0.992)
/* Android */
Color.parseColor("#240cfd")

Accessibility — WCAG contrast

Aa
#240cfd on white: 8.25:1
AA ✓ pass · AA-large · AAA
Aa
#240cfd on black: 2.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red14.1%
Green4.7%
Blue99.2%

CMYK percentages

Cyan85.8%
Magenta95.3%
Yellow0.0%
Key (black)0.8%

Color previews

#240cfd text on a black background

contrast 2.55:1

Card sample

#240cfd text on a white background

contrast 8.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #240cfd;
Background color
Panel with #240cfd background
background-color: #240cfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(36, 12, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(36, 12, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #240cfd;
background: linear-gradient(135deg, #240cfd, #C50CFD);

Monochromatic scale

Palettes built from #240cfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #240cfd in the Color Lab