Skip to content

#7f8cbf

a balanced, soft blue · cool · closest name: Cornflower Blue

RGB
127, 140, 191
HSL
228°, 33%, 62%
CMYK
34, 27, 0, 25
Luminance
0.2703

At a glance

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

Hex
#7f8cbf
Hue
228°
blue
Saturation
33%
soft
Lightness
62%
balanced
Brightness
75%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2703
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Soft
Best ink
Black
6.41:1
Closest name
Cornflower Blue
ΔE2000 9.9
Where it sits
Hue228° of 360°
Saturation33%
Lightness62%
Temperature
Warm ← → Cool88% 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#7f8cbf
RGBrgb(127, 140, 191)
HSLhsl(228, 33%, 62%)
CMYKcmyk(34%, 27%, 0%, 25%)
LABlab(59.0 7.5 -28.1)
LCHlch(59.0 29.1 285.1)
OKLCHoklch(0.649 0.078 273.0)
Decimal8359103
Display P3color(display-p3 0.498 0.549 0.749)

Copy-ready code

/* CSS */
color: #7f8cbf;
background-color: #7f8cbf;
/* Tailwind (arbitrary) */
class="text-[#7f8cbf] bg-[#7f8cbf]"
/* SCSS */
$brand: #7f8cbf;
/* SwiftUI */
Color(red: 0.498, green: 0.549, blue: 0.749)
/* Android */
Color.parseColor("#7f8cbf")
/* Flutter */
Color(0xFF7F8CBF)
/* Python / OpenCV (BGR) */
(191, 140, 127)

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

Accessibility — WCAG contrast

Aa
#7f8cbf on white: 3.28:1
AA ✗ fail · AA-large · AAA
Aa
#7f8cbf on black: 6.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7C91C1
deuteranopia · #778CBE
tritanopia · #6D969E

Color scale — 50 to 950

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

#F5F6F9
#ECEDF4
#D4D8E8
#B4BCDA
#7f8cbf
#6979B4
#5262A3
#445288
#36416D
#2A3250
#1B1F32
Base = 400Lightest = 50 · #F5F6F9Darkest = 950 · #1B1F32
:root {
  --brand-50: #F5F6F9;
  --brand-100: #ECEDF4;
  --brand-200: #D4D8E8;
  --brand-300: #B4BCDA;
  --brand-400: #7f8cbf;
  --brand-500: #6979B4;
  --brand-600: #5262A3;
  --brand-700: #445288;
  --brand-800: #36416D;
  --brand-900: #2A3250;
  --brand-950: #1B1F32;
  --brand: #7f8cbf;
  --brand-ink: #000000;
}

Colors that work with #7f8cbf

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#F5F6FA
Tinted page background
Border#C9CEE4
Hairlines and dividers
Muted text#4D5C99
Captions on the surface
Accent#8C6940
Second voice, not a rival
Dark variant#2B3355
Hover, pressed, headers
Light variant#EEF0F6
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 #7f8cbf

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#BFB27F
Analogous left#7FACBF
Analogous right#927FBF
Split-complement 1#BF927F
Split-complement 2#ACBF7F
Triadic 1#BF7F8C
Triadic 2#8CBF7F
Tetradic#BF7FAC

RGB percentages

Red49.8%
Green54.9%
Blue74.9%

CMYK percentages

Cyan33.5%
Magenta26.7%
Yellow0.0%
Key (black)25.1%

Color previews

#7f8cbf text on a black background

contrast 6.41:1

Card sample

#7f8cbf text on a white background

contrast 3.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f8cbf;
Background color
Panel with #7f8cbf background
background-color: #7f8cbf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7f8cbf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(127, 140, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 140, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f8cbf;
background: linear-gradient(135deg, #7f8cbf, #9D7FBF);

Monochromatic scale

Palettes built from #7f8cbf

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.

#7f8cbf 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

Converts to four-color process without much drama. Proof it anyway.

#7f8cbf, answered

What color is #7f8cbf?

#7f8cbf is a balanced soft blue, closest to Cornflower Blue (ΔE2000 9.9). It sits at 228° on the hue wheel with 33% saturation and 62% lightness, which reads as cool.

What is the RGB value of #7f8cbf?

rgb(127, 140, 191) — 127 red, 140 green and 191 blue out of 255, or 49.8% / 54.9% / 74.9% by channel.

Is #7f8cbf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2703 and perceived brightness is 56%, so black text on it reaches 6.41:1.

Should I use black or white text on #7f8cbf?

Black. It scores 6.41:1 against #7f8cbf, versus 3.28:1 for white — AA at any size.

What is the complementary color of #7f8cbf?

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

What colors go well with #7f8cbf?

For interface work: #F5F6FA as the surface, #C9CEE4 for borders, #4D5C99 for secondary text, #8C6940 as an accent and #2B3355 for hover and pressed states. For a palette, the analogous pair #7FACBF and #927FBF stays calm, while #BFB27F is the loudest partner.

What is #7f8cbf in CMYK for printing?

cmyk(34%, 27%, 0%, 25%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7f8cbf warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8A7FBF; nudged cooler, #7D99C1.

Work with #7f8cbf in the Color Lab