Skip to content

#645dfb

a light, electric blue · cool · closest name: Medium Slate Blue

RGB
100, 93, 251
HSL
243°, 95%, 68%
CMYK
60, 63, 0, 2
Luminance
0.1750

At a glance

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

Hex
#645dfb
Hue
243°
blue
Saturation
95%
electric
Lightness
68%
light
Brightness
98%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1750
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.67:1
Closest name
Medium Slate Blue
ΔE2000 4.6
Where it sits
Hue243° of 360°
Saturation95%
Lightness68%
Temperature
Warm ← → Cool82% 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#645dfb
RGBrgb(100, 93, 251)
HSLhsl(243, 95%, 68%)
CMYKcmyk(60%, 63%, 0%, 2%)
LABlab(48.9 47.3 -78.0)
LCHlch(48.9 91.2 301.2)
OKLCHoklch(0.579 0.227 278.6)
Decimal6577659
Display P3color(display-p3 0.392 0.365 0.984)

Copy-ready code

/* CSS */
color: #645dfb;
background-color: #645dfb;
/* Tailwind (arbitrary) */
class="text-[#645dfb] bg-[#645dfb]"
/* SCSS */
$brand: #645dfb;
/* SwiftUI */
Color(red: 0.392, green: 0.365, blue: 0.984)
/* Android */
Color.parseColor("#645dfb")
/* Flutter */
Color(0xFF645DFB)
/* Python / OpenCV (BGR) */
(251, 93, 100)

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#ffffff on #645dfb · 4.67:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.67:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.50:1
AA pass · AA large pass · AAA fail
Reading the other direction: #645dfb as text scores 4.67:1 on white and 4.50:1 on black.

Accessibility — WCAG contrast

Aa
#645dfb on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#645dfb on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007BFF
deuteranopia · #006EF8
tritanopia · #0085A4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #645dfb 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.

#F2F1FD
#E5E4FC
#C4C2FA
#9691FC
#645dfb
#2E24FA
#1006EF
#0E05C7
#0B049F
#0C0873
#080548
Base = 400Lightest = 50 · #F2F1FDDarkest = 950 · #080548
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E5E4FC;
  --brand-200: #C4C2FA;
  --brand-300: #9691FC;
  --brand-400: #645dfb;
  --brand-500: #2E24FA;
  --brand-600: #1006EF;
  --brand-700: #0E05C7;
  --brand-800: #0B049F;
  --brand-900: #0C0873;
  --brand-950: #080548;
  --brand: #645dfb;
  --brand-ink: #ffffff;
}

Colors that work with #645dfb

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

Text on it#ffffff
White wins here
Surface#F5F4FA
Tinted page background
Border#C2C0ED
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#CBA201
Second voice, not a rival
Dark variant#09037C
Hover, pressed, headers
Light variant#E7E6FE
Selected rows, tints
Dark surface#141424
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 #645dfb

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

Works well for
  • Body text and links 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
  • 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#F4FB5D
Analogous left#5DA5FB
Analogous right#B35DFB
Split-complement 1#FBB35D
Split-complement 2#A5FB5D
Triadic 1#FB645D
Triadic 2#5DFB64
Tetradic#FB5DA5

RGB percentages

Red39.2%
Green36.5%
Blue98.4%

CMYK percentages

Cyan60.2%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#645dfb text on a black background

contrast 4.50:1

Card sample

#645dfb text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #645dfb;
Background color
Panel with #645dfb background
background-color: #645dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #645dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(100, 93, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(100, 93, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #645dfb;
background: linear-gradient(135deg, #645dfb, #CE5DFB);

Monochromatic scale

Palettes built from #645dfb

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.

#645dfb 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.

#645dfb, answered

What color is #645dfb?

#645dfb is a light electric blue, closest to Medium Slate Blue (ΔE2000 4.6). It sits at 243° on the hue wheel with 95% saturation and 68% lightness, which reads as cool.

What is the RGB value of #645dfb?

rgb(100, 93, 251) — 100 red, 93 green and 251 blue out of 255, or 39.2% / 36.5% / 98.4% by channel.

Is #645dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1750 and perceived brightness is 48%, so white text on it reaches 4.67:1.

Should I use black or white text on #645dfb?

White. It scores 4.67:1 against #645dfb, versus 4.50:1 for black — AA at any size.

What is the complementary color of #645dfb?

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

What colors go well with #645dfb?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #CBA201 as an accent and #09037C for hover and pressed states. For a palette, the analogous pair #5DA5FB and #B35DFB stays calm, while #F4FB5D is the loudest partner.

What is #645dfb in CMYK for printing?

cmyk(60%, 63%, 0%, 2%). 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 #645dfb warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9E5DFB; nudged cooler, #5C83FD.

Work with #645dfb in the Color Lab