Skip to content

#3f5fda

a balanced, vivid blue · cool · closest name: Royal Blue

RGB
63, 95, 218
HSL
228°, 68%, 55%
CMYK
71, 56, 0, 15
Luminance
0.1430

At a glance

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

Hex
#3f5fda
Hue
228°
blue
Saturation
68%
vivid
Lightness
55%
balanced
Brightness
85%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1430
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.44:1
Closest name
Royal Blue
ΔE2000 3.5
Where it sits
Hue228° of 360°
Saturation68%
Lightness55%
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#3f5fda
RGBrgb(63, 95, 218)
HSLhsl(228, 68%, 55%)
CMYKcmyk(71%, 56%, 0%, 15%)
LABlab(44.7 29.8 -66.4)
LCHlch(44.7 72.8 294.2)
OKLCHoklch(0.534 0.192 268.1)
Decimal4153306
Display P3color(display-p3 0.247 0.373 0.855)

Copy-ready code

/* CSS */
color: #3f5fda;
background-color: #3f5fda;
/* Tailwind (arbitrary) */
class="text-[#3f5fda] bg-[#3f5fda]"
/* SCSS */
$brand: #3f5fda;
/* SwiftUI */
Color(red: 0.247, green: 0.373, blue: 0.855)
/* Android */
Color.parseColor("#3f5fda")
/* Flutter */
Color(0xFF3F5FDA)
/* Python / OpenCV (BGR) */
(218, 95, 63)

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

Accessibility — WCAG contrast

Aa
#3f5fda on white: 5.44:1
AA ✓ pass · AA-large · AAA
Aa
#3f5fda on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0071DE
deuteranopia · #0063D8
tritanopia · #007D93

Color scale — 50 to 950

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

#F3F5FB
#E8EBF8
#CAD2F2
#A1B1ED
#7289E4
#3f5fda
#284ACD
#213DAB
#1A3189
#172763
#0E183E
Base = 500Lightest = 50 · #F3F5FBDarkest = 950 · #0E183E
:root {
  --brand-50: #F3F5FB;
  --brand-100: #E8EBF8;
  --brand-200: #CAD2F2;
  --brand-300: #A1B1ED;
  --brand-400: #7289E4;
  --brand-500: #3f5fda;
  --brand-600: #284ACD;
  --brand-700: #213DAB;
  --brand-800: #1A3189;
  --brand-900: #172763;
  --brand-950: #0E183E;
  --brand: #3f5fda;
  --brand-ink: #ffffff;
}

Colors that work with #3f5fda

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#F4F6FA
Tinted page background
Border#C0C9ED
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#B06D1C
Second voice, not a rival
Dark variant#15266B
Hover, pressed, headers
Light variant#EAEDFB
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 #3f5fda

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
  • 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#DABA3F
Analogous left#3FADDA
Analogous right#6C3FDA
Split-complement 1#DA6C3F
Split-complement 2#ADDA3F
Triadic 1#DA3F5F
Triadic 2#5FDA3F
Tetradic#DA3FAD

RGB percentages

Red24.7%
Green37.3%
Blue85.5%

CMYK percentages

Cyan71.1%
Magenta56.4%
Yellow0.0%
Key (black)14.5%

Color previews

#3f5fda text on a black background

contrast 3.86:1

Card sample

#3f5fda text on a white background

contrast 5.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3f5fda;
Background color
Panel with #3f5fda background
background-color: #3f5fda;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3f5fda;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(63, 95, 218, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(63, 95, 218, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3f5fda;
background: linear-gradient(135deg, #3f5fda, #863FDA);

Monochromatic scale

Palettes built from #3f5fda

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.

#3f5fda 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.

#3f5fda, answered

What color is #3f5fda?

#3f5fda is a balanced vivid blue, closest to Royal Blue (ΔE2000 3.5). It sits at 228° on the hue wheel with 68% saturation and 55% lightness, which reads as cool.

What is the RGB value of #3f5fda?

rgb(63, 95, 218) — 63 red, 95 green and 218 blue out of 255, or 24.7% / 37.3% / 85.5% by channel.

Is #3f5fda a light or a dark color?

It is a dark color. Relative luminance is 0.1430 and perceived brightness is 43%, so white text on it reaches 5.44:1.

Should I use black or white text on #3f5fda?

White. It scores 5.44:1 against #3f5fda, versus 3.86:1 for black — AA at any size.

What is the complementary color of #3f5fda?

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

What colors go well with #3f5fda?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #B06D1C as an accent and #15266B for hover and pressed states. For a palette, the analogous pair #3FADDA and #6C3FDA stays calm, while #DABA3F is the loudest partner.

What is #3f5fda in CMYK for printing?

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

Is #3f5fda 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 #583FDA; nudged cooler, #3D75DC.

Work with #3f5fda in the Color Lab