Skip to content

#627ef1

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

RGB
98, 126, 241
HSL
228°, 84%, 67%
CMYK
59, 48, 0, 6
Luminance
0.2387

At a glance

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

Hex
#627ef1
Hue
228°
blue
Saturation
84%
electric
Lightness
67%
light
Brightness
95%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2387
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.77:1
Closest name
Cornflower Blue
ΔE2000 7.7
Where it sits
Hue228° of 360°
Saturation84%
Lightness67%
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#627ef1
RGBrgb(98, 126, 241)
HSLhsl(228, 84%, 67%)
CMYKcmyk(59%, 48%, 0%, 6%)
LABlab(56.0 24.0 -61.0)
LCHlch(56.0 65.6 291.5)
OKLCHoklch(0.629 0.174 270.4)
Decimal6455025
Display P3color(display-p3 0.384 0.494 0.945)

Copy-ready code

/* CSS */
color: #627ef1;
background-color: #627ef1;
/* Tailwind (arbitrary) */
class="text-[#627ef1] bg-[#627ef1]"
/* SCSS */
$brand: #627ef1;
/* SwiftUI */
Color(red: 0.384, green: 0.494, blue: 0.945)
/* Android */
Color.parseColor("#627ef1")
/* Flutter */
Color(0xFF627EF1)
/* Python / OpenCV (BGR) */
(241, 126, 98)

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 #627ef1 · 5.77:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.64:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.77:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #627ef1 as text scores 3.64:1 on white and 5.77:1 on black.

Accessibility — WCAG contrast

Aa
#627ef1 on white: 3.64:1
AA ✗ fail · AA-large · AAA
Aa
#627ef1 on black: 5.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #448DF5
deuteranopia · #2B80EF
tritanopia · #0098AC

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #627ef1 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
#E6EAFA
#C5CFF6
#98AAF6
#627ef1
#3156ED
#143CE1
#1132BB
#0D2896
#0E206C
#091444
Base = 400Lightest = 50 · #F2F4FCDarkest = 950 · #091444
:root {
  --brand-50: #F2F4FC;
  --brand-100: #E6EAFA;
  --brand-200: #C5CFF6;
  --brand-300: #98AAF6;
  --brand-400: #627ef1;
  --brand-500: #3156ED;
  --brand-600: #143CE1;
  --brand-700: #1132BB;
  --brand-800: #0D2896;
  --brand-900: #0E206C;
  --brand-950: #091444;
  --brand: #627ef1;
  --brand-ink: #000000;
}

Colors that work with #627ef1

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#C0C9ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#BF700D
Second voice, not a rival
Dark variant#0A1F75
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 #627ef1

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#F1D562
Analogous left#62C5F1
Analogous right#8E62F1
Split-complement 1#F18E62
Split-complement 2#C5F162
Triadic 1#F1627E
Triadic 2#7EF162
Tetradic#F162C5

RGB percentages

Red38.4%
Green49.4%
Blue94.5%

CMYK percentages

Cyan59.3%
Magenta47.7%
Yellow0.0%
Key (black)5.5%

Color previews

#627ef1 text on a black background

contrast 5.77:1

Card sample

#627ef1 text on a white background

contrast 3.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #627ef1;
Background color
Panel with #627ef1 background
background-color: #627ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #627ef1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(98, 126, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(98, 126, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #627ef1;
background: linear-gradient(135deg, #627ef1, #A662F1);

Monochromatic scale

Palettes built from #627ef1

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.

#627ef1 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.

#627ef1, answered

What color is #627ef1?

#627ef1 is a light electric blue, closest to Cornflower Blue (ΔE2000 7.7). It sits at 228° on the hue wheel with 84% saturation and 67% lightness, which reads as cool.

What is the RGB value of #627ef1?

rgb(98, 126, 241) — 98 red, 126 green and 241 blue out of 255, or 38.4% / 49.4% / 94.5% by channel.

Is #627ef1 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2387 and perceived brightness is 54%, so black text on it reaches 5.77:1.

Should I use black or white text on #627ef1?

Black. It scores 5.77:1 against #627ef1, versus 3.64:1 for white — AA at any size.

What is the complementary color of #627ef1?

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

What colors go well with #627ef1?

For interface work: #F4F5FA as the surface, #C0C9ED for borders, #4B5A9B for secondary text, #BF700D as an accent and #0A1F75 for hover and pressed states. For a palette, the analogous pair #62C5F1 and #8E62F1 stays calm, while #F1D562 is the loudest partner.

What is #627ef1 in CMYK for printing?

cmyk(59%, 48%, 0%, 6%). 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 #627ef1 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 #7B62F1; nudged cooler, #6094F3.

Work with #627ef1 in the Color Lab