Skip to content

#2f4b8f

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
47, 75, 143
HSL
223°, 51%, 37%
CMYK
67, 48, 0, 44
Luminance
0.0762

At a glance

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

Hex
#2f4b8f
Hue
223°
blue
Saturation
51%
vivid
Lightness
37%
dark
Brightness
56%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0762
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.32:1
Closest name
Dark Slate Blue
ΔE2000 8.3
Where it sits
Hue223° of 360°
Saturation51%
Lightness37%
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#2f4b8f
RGBrgb(47, 75, 143)
HSLhsl(223, 51%, 37%)
CMYKcmyk(67%, 48%, 0%, 44%)
LABlab(33.2 12.9 -40.9)
LCHlch(33.2 42.8 287.5)
OKLCHoklch(0.428 0.117 265.0)
Decimal3099535
Display P3color(display-p3 0.184 0.294 0.561)

Copy-ready code

/* CSS */
color: #2f4b8f;
background-color: #2f4b8f;
/* Tailwind (arbitrary) */
class="text-[#2f4b8f] bg-[#2f4b8f]"
/* SCSS */
$brand: #2f4b8f;
/* SwiftUI */
Color(red: 0.184, green: 0.294, blue: 0.561)
/* Android */
Color.parseColor("#2f4b8f")
/* Flutter */
Color(0xFF2F4B8F)
/* Python / OpenCV (BGR) */
(143, 75, 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 #2f4b8f · 8.32:1
Use #ffffffAAA at every size.
Aa
White text · 8.32:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.52:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2f4b8f as text scores 8.32:1 on white and 2.52:1 on black.

Accessibility — WCAG contrast

Aa
#2f4b8f on white: 8.32:1
AA ✓ pass · AA-large · AAA
Aa
#2f4b8f on black: 2.52:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #295392
deuteranopia · #174A8E
tritanopia · #005B66

Color scale — 50 to 950

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

#F4F6FA
#EAEDF6
#CFD8ED
#ABBBE3
#8099D5
#5677C7
#3D61B8
#2f4b8f
#28407B
#21315A
#141F38
Base = 700Lightest = 50 · #F4F6FADarkest = 950 · #141F38
:root {
  --brand-50: #F4F6FA;
  --brand-100: #EAEDF6;
  --brand-200: #CFD8ED;
  --brand-300: #ABBBE3;
  --brand-400: #8099D5;
  --brand-500: #5677C7;
  --brand-600: #3D61B8;
  --brand-700: #2f4b8f;
  --brand-800: #28407B;
  --brand-900: #21315A;
  --brand-950: #141F38;
  --brand: #2f4b8f;
  --brand-ink: #ffffff;
}

Colors that work with #2f4b8f

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#C2CEEB
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#935B2B
Second voice, not a rival
Dark variant#203260
Hover, pressed, headers
Light variant#ECF0F9
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 #2f4b8f

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#8F732F
Analogous left#2F7B8F
Analogous right#432F8F
Split-complement 1#8F432F
Split-complement 2#7B8F2F
Triadic 1#8F2F4B
Triadic 2#4B8F2F
Tetradic#8F2F7B

RGB percentages

Red18.4%
Green29.4%
Blue56.1%

CMYK percentages

Cyan67.1%
Magenta47.6%
Yellow0.0%
Key (black)43.9%

Color previews

#2f4b8f text on a black background

contrast 2.52:1

Card sample

#2f4b8f text on a white background

contrast 8.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 75, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 75, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4b8f;
background: linear-gradient(135deg, #2f4b8f, #532F8F);

Monochromatic scale

Palettes built from #2f4b8f

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.

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

#2f4b8f, answered

What color is #2f4b8f?

#2f4b8f is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 8.3). It sits at 223° on the hue wheel with 51% saturation and 37% lightness, which reads as cool.

What is the RGB value of #2f4b8f?

rgb(47, 75, 143) — 47 red, 75 green and 143 blue out of 255, or 18.4% / 29.4% / 56.1% by channel.

Is #2f4b8f a light or a dark color?

It is a dark color. Relative luminance is 0.0762 and perceived brightness is 31%, so white text on it reaches 8.32:1.

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

White. It scores 8.32:1 against #2f4b8f, versus 2.52:1 for black — AAA at any size.

What is the complementary color of #2f4b8f?

#8F732F sits directly opposite on the wheel. Softer options are the split-complements #8F432F and #7B8F2F, which give the same contrast with far less vibration.

What colors go well with #2f4b8f?

For interface work: #F4F6FA as the surface, #C2CEEB for borders, #4B629B for secondary text, #935B2B as an accent and #203260 for hover and pressed states. For a palette, the analogous pair #2F7B8F and #432F8F stays calm, while #8F732F is the loudest partner.

What is #2f4b8f in CMYK for printing?

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

Is #2f4b8f 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 #362F8F; nudged cooler, #2D5691.

Work with #2f4b8f in the Color Lab