Skip to content

#768cf0

a light, electric blue · warm · closest name: dodgerblue

RGB
118, 140, 240
HSL
229°, 80%, 70%
CMYK
51, 42, 0, 6
Luminance
0.2890

Every format

HEX#768cf0
RGBrgb(118, 140, 240)
HSLhsl(229, 80%, 70%)
CMYKcmyk(51%, 42%, 0%, 6%)
LABlab(60.7 19.3 -52.9)
LCHlch(60.7 56.3 290.1)
OKLCHoklch(0.668 0.150 272.4)

Copy-ready code

/* CSS */
color: #768cf0;
background-color: #768cf0;
/* Tailwind (arbitrary) */
class="text-[#768cf0] bg-[#768cf0]"
/* SCSS */
$brand: #768cf0;
/* SwiftUI */
Color(red: 0.463, green: 0.549, blue: 0.941)
/* Android */
Color.parseColor("#768cf0")

Accessibility — WCAG contrast

Aa
#768cf0 on white: 3.10:1
AA ✗ fail · AA-large · AAA
Aa
#768cf0 on black: 6.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red46.3%
Green54.9%
Blue94.1%

CMYK percentages

Cyan50.8%
Magenta41.7%
Yellow0.0%
Key (black)5.9%

Color previews

#768cf0 text on a black background

contrast 6.78:1

Card sample

#768cf0 text on a white background

contrast 3.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #768cf0;
Background color
Panel with #768cf0 background
background-color: #768cf0;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(118, 140, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(118, 140, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #768cf0;
background: linear-gradient(135deg, #768cf0, #B176F0);

Monochromatic scale

Palettes built from #768cf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #768cf0 in the Color Lab