Skip to content

#2f5abc

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

RGB
47, 90, 188
HSL
222°, 60%, 46%
CMYK
75, 52, 0, 26
Luminance
0.1155

At a glance

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

Hex
#2f5abc
Hue
222°
blue
Saturation
60%
vivid
Lightness
46%
balanced
Brightness
74%
HSV value
Perceived
38%
weighted brightness
Luminance
0.1155
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.35:1
Closest name
Royal Blue
ΔE2000 7.2
Where it sits
Hue222° of 360°
Saturation60%
Lightness46%
Temperature
Warm ← → Cool93% 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#2f5abc
RGBrgb(47, 90, 188)
HSLhsl(222, 60%, 46%)
CMYKcmyk(75%, 52%, 0%, 26%)
LABlab(40.5 20.0 -55.9)
LCHlch(40.5 59.4 289.6)
OKLCHoklch(0.494 0.162 263.7)
Decimal3103420
Display P3color(display-p3 0.184 0.353 0.737)

Copy-ready code

/* CSS */
color: #2f5abc;
background-color: #2f5abc;
/* Tailwind (arbitrary) */
class="text-[#2f5abc] bg-[#2f5abc]"
/* SCSS */
$brand: #2f5abc;
/* SwiftUI */
Color(red: 0.184, green: 0.353, blue: 0.737)
/* Android */
Color.parseColor("#2f5abc")
/* Flutter */
Color(0xFF2F5ABC)
/* Python / OpenCV (BGR) */
(188, 90, 47)

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

Accessibility — WCAG contrast

Aa
#2f5abc on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#2f5abc on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1866BF
deuteranopia · #0059BA
tritanopia · #007282

Color scale — 50 to 950

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

#F4F6FB
#E9EDF7
#CCD7EF
#A5BAE9
#7897DD
#4B75D2
#2f5abc
#294EA3
#213F83
#1B305F
#111E3B
Base = 600Lightest = 50 · #F4F6FBDarkest = 950 · #111E3B
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9EDF7;
  --brand-200: #CCD7EF;
  --brand-300: #A5BAE9;
  --brand-400: #7897DD;
  --brand-500: #4B75D2;
  --brand-600: #2f5abc;
  --brand-700: #294EA3;
  --brand-800: #213F83;
  --brand-900: #1B305F;
  --brand-950: #111E3B;
  --brand: #2f5abc;
  --brand-ink: #ffffff;
}

Colors that work with #2f5abc

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#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#C16D2A
Second voice, not a rival
Dark variant#1A3166
Hover, pressed, headers
Light variant#EBEFFA
Selected rows, tints
Dark surface#141924
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 #2f5abc

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#BC912F
Analogous left#2FA1BC
Analogous right#4B2FBC
Split-complement 1#BC4B2F
Split-complement 2#A1BC2F
Triadic 1#BC2F5A
Triadic 2#5ABC2F
Tetradic#BC2FA1

RGB percentages

Red18.4%
Green35.3%
Blue73.7%

CMYK percentages

Cyan75.0%
Magenta52.1%
Yellow0.0%
Key (black)26.3%

Color previews

#2f5abc text on a black background

contrast 3.31:1

Card sample

#2f5abc text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f5abc;
Background color
Panel with #2f5abc background
background-color: #2f5abc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 90, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 90, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5abc;
background: linear-gradient(135deg, #2f5abc, #622FBC);

Monochromatic scale

Palettes built from #2f5abc

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.

#2f5abc 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.

#2f5abc, answered

What color is #2f5abc?

#2f5abc is a balanced vivid blue, closest to Royal Blue (ΔE2000 7.2). It sits at 222° on the hue wheel with 60% saturation and 46% lightness, which reads as cool.

What is the RGB value of #2f5abc?

rgb(47, 90, 188) — 47 red, 90 green and 188 blue out of 255, or 18.4% / 35.3% / 73.7% by channel.

Is #2f5abc a light or a dark color?

It is a dark color. Relative luminance is 0.1155 and perceived brightness is 38%, so white text on it reaches 6.35:1.

Should I use black or white text on #2f5abc?

White. It scores 6.35:1 against #2f5abc, versus 3.31:1 for black — AA at any size.

What is the complementary color of #2f5abc?

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

What colors go well with #2f5abc?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #C16D2A as an accent and #1A3166 for hover and pressed states. For a palette, the analogous pair #2FA1BC and #4B2FBC stays calm, while #BC912F is the loudest partner.

What is #2f5abc in CMYK for printing?

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

Is #2f5abc warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #382FBC; nudged cooler, #285CAA.

Work with #2f5abc in the Color Lab