Skip to content

#7f8fdf

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

RGB
127, 143, 223
HSL
230°, 60%, 69%
CMYK
43, 36, 0, 13
Luminance
0.2948

At a glance

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

Hex
#7f8fdf
Hue
230°
blue
Saturation
60%
vivid
Lightness
69%
light
Brightness
87%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2948
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.90:1
Closest name
Cornflower Blue
ΔE2000 6.8
Where it sits
Hue230° of 360°
Saturation60%
Lightness69%
Temperature
Warm ← → Cool89% 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#7f8fdf
RGBrgb(127, 143, 223)
HSLhsl(230, 60%, 69%)
CMYKcmyk(43%, 36%, 0%, 13%)
LABlab(61.2 14.7 -42.6)
LCHlch(61.2 45.0 289.0)
OKLCHoklch(0.671 0.120 274.1)
Decimal8359903
Display P3color(display-p3 0.498 0.561 0.875)

Copy-ready code

/* CSS */
color: #7f8fdf;
background-color: #7f8fdf;
/* Tailwind (arbitrary) */
class="text-[#7f8fdf] bg-[#7f8fdf]"
/* SCSS */
$brand: #7f8fdf;
/* SwiftUI */
Color(red: 0.498, green: 0.561, blue: 0.875)
/* Android */
Color.parseColor("#7f8fdf")
/* Flutter */
Color(0xFF7F8FDF)
/* Python / OpenCV (BGR) */
(223, 143, 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 #7f8fdf · 6.90:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.04:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.90:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7f8fdf as text scores 3.04:1 on white and 6.90:1 on black.

Accessibility — WCAG contrast

Aa
#7f8fdf on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#7f8fdf on black: 6.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7398E2
deuteranopia · #6B90DD
tritanopia · #5F9FAC

Color scale — 50 to 950

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

#F4F5FB
#E9EBF7
#CCD2EF
#A5B0E9
#7f8fdf
#4B62D2
#3149C4
#293DA3
#213183
#1B275F
#11183B
Base = 400Lightest = 50 · #F4F5FBDarkest = 950 · #11183B
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E9EBF7;
  --brand-200: #CCD2EF;
  --brand-300: #A5B0E9;
  --brand-400: #7f8fdf;
  --brand-500: #4B62D2;
  --brand-600: #3149C4;
  --brand-700: #293DA3;
  --brand-800: #213183;
  --brand-900: #1B275F;
  --brand-950: #11183B;
  --brand: #7f8fdf;
  --brand-ink: #000000;
}

Colors that work with #7f8fdf

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#C0C7ED
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#A77025
Second voice, not a rival
Dark variant#1A2666
Hover, pressed, headers
Light variant#EBEDFA
Selected rows, tints
Dark surface#141624
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 #7f8fdf

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#DFCF7F
Analogous left#7FBFDF
Analogous right#9F7FDF
Split-complement 1#DF9F7F
Split-complement 2#BFDF7F
Triadic 1#DF7F8F
Triadic 2#8FDF7F
Tetradic#DF7FBF

RGB percentages

Red49.8%
Green56.1%
Blue87.5%

CMYK percentages

Cyan43.0%
Magenta35.9%
Yellow0.0%
Key (black)12.5%

Color previews

#7f8fdf text on a black background

contrast 6.90:1

Card sample

#7f8fdf text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 143, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 143, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f8fdf;
background: linear-gradient(135deg, #7f8fdf, #AF7FDF);

Monochromatic scale

Palettes built from #7f8fdf

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.

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

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

#7f8fdf, answered

What color is #7f8fdf?

#7f8fdf is a light vivid blue, closest to Cornflower Blue (ΔE2000 6.8). It sits at 230° on the hue wheel with 60% saturation and 69% lightness, which reads as cool.

What is the RGB value of #7f8fdf?

rgb(127, 143, 223) — 127 red, 143 green and 223 blue out of 255, or 49.8% / 56.1% / 87.5% by channel.

Is #7f8fdf a light or a dark color?

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

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

Black. It scores 6.90:1 against #7f8fdf, versus 3.04:1 for white — AA at any size.

What is the complementary color of #7f8fdf?

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

What colors go well with #7f8fdf?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B589B for secondary text, #A77025 as an accent and #1A2666 for hover and pressed states. For a palette, the analogous pair #7FBFDF and #9F7FDF stays calm, while #DFCF7F is the loudest partner.

What is #7f8fdf in CMYK for printing?

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

Is #7f8fdf warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #927FDF; nudged cooler, #7DA2E1.

Work with #7f8fdf in the Color Lab