Skip to content

#768df2

a light, electric blue · cool · closest name: Cornflower Blue

RGB
118, 141, 242
HSL
229°, 83%, 71%
CMYK
51, 42, 0, 5
Luminance
0.2931

At a glance

Every number on this page in one read: what #768df2 is made of, how bright it looks, and which way it leans.

Hex
#768df2
Hue
229°
blue
Saturation
83%
electric
Lightness
71%
light
Brightness
95%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2931
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.86:1
Closest name
Cornflower Blue
ΔE2000 5.3
Where it sits
Hue229° of 360°
Saturation83%
Lightness71%
Temperature
Warm ← → Cool90% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#768df2
RGBrgb(118, 141, 242)
HSLhsl(229, 83%, 71%)
CMYKcmyk(51%, 42%, 0%, 5%)
LABlab(61.0 19.4 -53.4)
LCHlch(61.0 56.8 289.9)
OKLCHoklch(0.671 0.151 272.1)
Decimal7769586
Display P3color(display-p3 0.463 0.553 0.949)

Copy-ready code

/* CSS */
color: #768df2;
background-color: #768df2;
/* Tailwind (arbitrary) */
class="text-[#768df2] bg-[#768df2]"
/* SCSS */
$brand: #768df2;
/* SwiftUI */
Color(red: 0.463, green: 0.553, blue: 0.949)
/* Android */
Color.parseColor("#768df2")
/* Flutter */
Color(0xFF768DF2)
/* Python / OpenCV (BGR) */
(242, 141, 118)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #768df2 · 6.86:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.06:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.86:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #768df2 as text scores 3.06:1 on white and 6.86:1 on black.

Accessibility — WCAG contrast

Aa
#768df2 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#768df2 on black: 6.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6399F6
deuteranopia · #568EF0
tritanopia · #3EA3B4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #768df2 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F4FC
#E6E9FA
#C6CFF6
#99AAF5
#768df2
#3254EC
#153BE0
#1231BA
#0E2795
#0F206C
#091443
Base = 400Lightest = 50 · #F2F4FCDarkest = 950 · #091443
:root {
  --brand-50: #F2F4FC;
  --brand-100: #E6E9FA;
  --brand-200: #C6CFF6;
  --brand-300: #99AAF5;
  --brand-400: #768df2;
  --brand-500: #3254EC;
  --brand-600: #153BE0;
  --brand-700: #1231BA;
  --brand-800: #0E2795;
  --brand-900: #0F206C;
  --brand-950: #091443;
  --brand: #768df2;
  --brand-ink: #000000;
}

Colors that work with #768df2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#BE710E
Second voice, not a rival
Dark variant#0B1F74
Hover, pressed, headers
Light variant#E8ECFD
Selected rows, tints
Dark surface#141724
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #768df2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F2DB76
Analogous left#76CBF2
Analogous right#9D76F2
Split-complement 1#F29D76
Split-complement 2#CBF276
Triadic 1#F2768D
Triadic 2#8DF276
Tetradic#F276CB

RGB percentages

Red46.3%
Green55.3%
Blue94.9%

CMYK percentages

Cyan51.2%
Magenta41.7%
Yellow0.0%
Key (black)5.1%

Color previews

#768df2 text on a black background

contrast 6.86:1

Card sample

#768df2 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #768df2

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#768df2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#768df2, answered

What color is #768df2?

#768df2 is a light electric blue, closest to Cornflower Blue (ΔE2000 5.3). It sits at 229° on the hue wheel with 83% saturation and 71% lightness, which reads as cool.

What is the RGB value of #768df2?

rgb(118, 141, 242) — 118 red, 141 green and 242 blue out of 255, or 46.3% / 55.3% / 94.9% by channel.

Is #768df2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2931 and perceived brightness is 59%, so black text on it reaches 6.86:1.

Should I use black or white text on #768df2?

Black. It scores 6.86:1 against #768df2, versus 3.06:1 for white — AA at any size.

What is the complementary color of #768df2?

#F2DB76 sits directly opposite on the wheel. Softer options are the split-complements #F29D76 and #CBF276, which give the same contrast with far less vibration.

What colors go well with #768df2?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #BE710E as an accent and #0B1F74 for hover and pressed states. For a palette, the analogous pair #76CBF2 and #9D76F2 stays calm, while #F2DB76 is the loudest partner.

What is #768df2 in CMYK for printing?

cmyk(51%, 42%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #768df2 warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8D76F2; nudged cooler, #75A2F4.

Work with #768df2 in the Color Lab