Skip to content

#2f4dce

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

RGB
47, 77, 206
HSL
229°, 63%, 50%
CMYK
77, 63, 0, 19
Luminance
0.1037

At a glance

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

Hex
#2f4dce
Hue
229°
blue
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1037
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.83:1
Closest name
Slate Blue
ΔE2000 8.5
Where it sits
Hue229° of 360°
Saturation63%
Lightness50%
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#2f4dce
RGBrgb(47, 77, 206)
HSLhsl(229, 63%, 50%)
CMYKcmyk(77%, 63%, 0%, 19%)
LABlab(38.5 35.1 -69.6)
LCHlch(38.5 78.0 296.7)
OKLCHoklch(0.483 0.202 267.7)
Decimal3100110
Display P3color(display-p3 0.184 0.302 0.808)

Copy-ready code

/* CSS */
color: #2f4dce;
background-color: #2f4dce;
/* Tailwind (arbitrary) */
class="text-[#2f4dce] bg-[#2f4dce]"
/* SCSS */
$brand: #2f4dce;
/* SwiftUI */
Color(red: 0.184, green: 0.302, blue: 0.808)
/* Android */
Color.parseColor("#2f4dce")
/* Flutter */
Color(0xFF2F4DCE)
/* Python / OpenCV (BGR) */
(206, 77, 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 #2f4dce · 6.83:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.83:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.07:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2f4dce as text scores 6.83:1 on white and 3.07:1 on black.

Accessibility — WCAG contrast

Aa
#2f4dce on white: 6.83:1
AA ✓ pass · AA-large · AAA
Aa
#2f4dce on black: 3.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062D2
deuteranopia · #0053CC
tritanopia · #006F86

Color scale — 50 to 950

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

#F4F5FB
#E8EBF7
#CCD2F0
#A4B1EA
#768AE0
#4863D5
#2f4dce
#263EA6
#1E3285
#1A2761
#10183C
Base = 600Lightest = 50 · #F4F5FBDarkest = 950 · #10183C
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E8EBF7;
  --brand-200: #CCD2F0;
  --brand-300: #A4B1EA;
  --brand-400: #768AE0;
  --brand-500: #4863D5;
  --brand-600: #2f4dce;
  --brand-700: #263EA6;
  --brand-800: #1E3285;
  --brand-900: #1A2761;
  --brand-950: #10183C;
  --brand: #2f4dce;
  --brand-ink: #ffffff;
}

Colors that work with #2f4dce

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#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#AA6E22
Second voice, not a rival
Dark variant#182768
Hover, pressed, headers
Light variant#EAEDFA
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 #2f4dce

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#CEB02F
Analogous left#2F9CCE
Analogous right#612FCE
Split-complement 1#CE612F
Split-complement 2#9CCE2F
Triadic 1#CE2F4D
Triadic 2#4DCE2F
Tetradic#CE2F9C

RGB percentages

Red18.4%
Green30.2%
Blue80.8%

CMYK percentages

Cyan77.2%
Magenta62.6%
Yellow0.0%
Key (black)19.2%

Color previews

#2f4dce text on a black background

contrast 3.07:1

Card sample

#2f4dce text on a white background

contrast 6.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 77, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 77, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4dce;
background: linear-gradient(135deg, #2f4dce, #7B2FCE);

Monochromatic scale

Palettes built from #2f4dce

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.

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

#2f4dce, answered

What color is #2f4dce?

#2f4dce is a balanced vivid blue, closest to Slate Blue (ΔE2000 8.5). It sits at 229° on the hue wheel with 63% saturation and 50% lightness, which reads as cool.

What is the RGB value of #2f4dce?

rgb(47, 77, 206) — 47 red, 77 green and 206 blue out of 255, or 18.4% / 30.2% / 80.8% by channel.

Is #2f4dce a light or a dark color?

It is a dark color. Relative luminance is 0.1037 and perceived brightness is 37%, so white text on it reaches 6.83:1.

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

White. It scores 6.83:1 against #2f4dce, versus 3.07:1 for black — AA at any size.

What is the complementary color of #2f4dce?

#CEB02F sits directly opposite on the wheel. Softer options are the split-complements #CE612F and #9CCE2F, which give the same contrast with far less vibration.

What colors go well with #2f4dce?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B5A9B for secondary text, #AA6E22 as an accent and #182768 for hover and pressed states. For a palette, the analogous pair #2F9CCE and #612FCE stays calm, while #CEB02F is the loudest partner.

What is #2f4dce in CMYK for printing?

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

Is #2f4dce 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 #4B2FCE; nudged cooler, #2D65D0.

Work with #2f4dce in the Color Lab