Skip to content

#321bcf

a balanced, electric blue · cool · closest name: Medium Blue

RGB
50, 27, 207
HSL
248°, 77%, 46%
CMYK
76, 87, 0, 19
Luminance
0.0597

At a glance

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

Hex
#321bcf
Hue
248°
blue
Saturation
77%
electric
Lightness
46%
balanced
Brightness
81%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0597
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.57:1
Closest name
Medium Blue
ΔE2000 3.5
Where it sits
Hue248° of 360°
Saturation77%
Lightness46%
Temperature
Warm ← → Cool79% 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#321bcf
RGBrgb(50, 27, 207)
HSLhsl(248, 77%, 46%)
CMYKcmyk(76%, 87%, 0%, 19%)
LABlab(29.3 62.0 -85.3)
LCHlch(29.3 105.5 306.0)
OKLCHoklch(0.419 0.247 273.3)
Decimal3283919
Display P3color(display-p3 0.196 0.106 0.812)

Copy-ready code

/* CSS */
color: #321bcf;
background-color: #321bcf;
/* Tailwind (arbitrary) */
class="text-[#321bcf] bg-[#321bcf]"
/* SCSS */
$brand: #321bcf;
/* SwiftUI */
Color(red: 0.196, green: 0.106, blue: 0.812)
/* Android */
Color.parseColor("#321bcf")
/* Flutter */
Color(0xFF321BCF)
/* Python / OpenCV (BGR) */
(207, 27, 50)

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 #321bcf · 9.57:1
Use #ffffffAAA at every size.
Aa
White text · 9.57:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.19:1
AA fail · AA large fail · AAA fail
Reading the other direction: #321bcf as text scores 9.57:1 on white and 2.19:1 on black.

Accessibility — WCAG contrast

Aa
#321bcf on white: 9.57:1
AA ✓ pass · AA-large · AAA
Aa
#321bcf on black: 2.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DD4
deuteranopia · #003CCC
tritanopia · #00597B

Color scale — 50 to 950

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

#F4F3FC
#E9E7F9
#CDC7F4
#A79CF2
#7B6AEC
#4F39E5
#321bcf
#2C18B4
#231390
#1D1268
#120B41
Base = 600Lightest = 50 · #F4F3FCDarkest = 950 · #120B41
:root {
  --brand-50: #F4F3FC;
  --brand-100: #E9E7F9;
  --brand-200: #CDC7F4;
  --brand-300: #A79CF2;
  --brand-400: #7B6AEC;
  --brand-500: #4F39E5;
  --brand-600: #321bcf;
  --brand-700: #2C18B4;
  --brand-800: #231390;
  --brand-900: #1D1268;
  --brand-950: #120B41;
  --brand: #321bcf;
  --brand-ink: #ffffff;
}

Colors that work with #321bcf

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#C6C0ED
Hairlines and dividers
Muted text#554B9B
Captions on the surface
Accent#B9A513
Second voice, not a rival
Dark variant#1B0F71
Hover, pressed, headers
Light variant#EBE8FC
Selected rows, tints
Dark surface#161424
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 #321bcf

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#B8CF1B
Analogous left#1B5ECF
Analogous right#8C1BCF
Split-complement 1#CF8C1B
Split-complement 2#5ECF1B
Triadic 1#CF321B
Triadic 2#1BCF32
Tetradic#CF1B5E

RGB percentages

Red19.6%
Green10.6%
Blue81.2%

CMYK percentages

Cyan75.8%
Magenta87.0%
Yellow0.0%
Key (black)18.8%

Color previews

#321bcf text on a black background

contrast 2.19:1

Card sample

#321bcf text on a white background

contrast 9.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #321bcf;
Background color
Panel with #321bcf background
background-color: #321bcf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #321bcf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(50, 27, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(50, 27, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #321bcf;
background: linear-gradient(135deg, #321bcf, #AA1BCF);

Monochromatic scale

Palettes built from #321bcf

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.

#321bcf 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
ButtonsLinksFocus statesCharts
Print note

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

#321bcf, answered

What color is #321bcf?

#321bcf is a balanced electric blue, closest to Medium Blue (ΔE2000 3.5). It sits at 248° on the hue wheel with 77% saturation and 46% lightness, which reads as cool.

What is the RGB value of #321bcf?

rgb(50, 27, 207) — 50 red, 27 green and 207 blue out of 255, or 19.6% / 10.6% / 81.2% by channel.

Is #321bcf a light or a dark color?

It is a dark color. Relative luminance is 0.0597 and perceived brightness is 31%, so white text on it reaches 9.57:1.

Should I use black or white text on #321bcf?

White. It scores 9.57:1 against #321bcf, versus 2.19:1 for black — AAA at any size.

What is the complementary color of #321bcf?

#B8CF1B sits directly opposite on the wheel. Softer options are the split-complements #CF8C1B and #5ECF1B, which give the same contrast with far less vibration.

What colors go well with #321bcf?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #554B9B for secondary text, #B9A513 as an accent and #1B0F71 for hover and pressed states. For a palette, the analogous pair #1B5ECF and #8C1BCF stays calm, while #B8CF1B is the loudest partner.

What is #321bcf in CMYK for printing?

cmyk(76%, 87%, 0%, 19%). 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 #321bcf warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #741BCF; nudged cooler, #193DD1.

Work with #321bcf in the Color Lab