Skip to content

#2f3f7b

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

RGB
47, 63, 123
HSL
227°, 45%, 33%
CMYK
62, 49, 0, 52
Luminance
0.0559

At a glance

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

Hex
#2f3f7b
Hue
227°
blue
Saturation
45%
soft
Lightness
33%
dark
Brightness
48%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0559
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Soft
Best ink
White
9.92:1
Closest name
Dark Slate Blue
ΔE2000 6.3
Where it sits
Hue227° of 360°
Saturation45%
Lightness33%
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#2f3f7b
RGBrgb(47, 63, 123)
HSLhsl(227, 45%, 33%)
CMYKcmyk(62%, 49%, 0%, 52%)
LABlab(28.4 13.6 -36.2)
LCHlch(28.4 38.7 290.5)
OKLCHoklch(0.387 0.103 269.8)
Decimal3096443
Display P3color(display-p3 0.184 0.247 0.482)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f3f7b on white: 9.92:1
AA ✓ pass · AA-large · AAA
Aa
#2f3f7b on black: 2.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #22467D
deuteranopia · #16407A
tritanopia · #004D57

Color scale — 50 to 950

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

#F5F6FA
#EAEDF5
#D1D6EB
#AEB8E0
#8595D0
#5D72C1
#445BB1
#384C94
#2f3f7b
#242F56
#171D36
Base = 800Lightest = 50 · #F5F6FADarkest = 950 · #171D36
:root {
  --brand-50: #F5F6FA;
  --brand-100: #EAEDF5;
  --brand-200: #D1D6EB;
  --brand-300: #AEB8E0;
  --brand-400: #8595D0;
  --brand-500: #5D72C1;
  --brand-600: #445BB1;
  --brand-700: #384C94;
  --brand-800: #2f3f7b;
  --brand-900: #242F56;
  --brand-950: #171D36;
  --brand: #2f3f7b;
  --brand-ink: #ffffff;
}

Colors that work with #2f3f7b

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#C4CCE8
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#7E582C
Second voice, not a rival
Dark variant#232F5C
Hover, pressed, headers
Light variant#EDEFF8
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 #2f3f7b

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#7B6B2F
Analogous left#2F657B
Analogous right#452F7B
Split-complement 1#7B452F
Split-complement 2#657B2F
Triadic 1#7B2F3F
Triadic 2#3F7B2F
Tetradic#7B2F65

RGB percentages

Red18.4%
Green24.7%
Blue48.2%

CMYK percentages

Cyan61.8%
Magenta48.8%
Yellow0.0%
Key (black)51.8%

Color previews

#2f3f7b text on a black background

contrast 2.12:1

Card sample

#2f3f7b text on a white background

contrast 9.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 63, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 63, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f3f7b;
background: linear-gradient(135deg, #2f3f7b, #522F7B);

Monochromatic scale

Palettes built from #2f3f7b

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.

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

#2f3f7b, answered

What color is #2f3f7b?

#2f3f7b is a dark soft blue, closest to Dark Slate Blue (ΔE2000 6.3). It sits at 227° on the hue wheel with 45% saturation and 33% lightness, which reads as cool.

What is the RGB value of #2f3f7b?

rgb(47, 63, 123) — 47 red, 63 green and 123 blue out of 255, or 18.4% / 24.7% / 48.2% by channel.

Is #2f3f7b a light or a dark color?

It is a dark color. Relative luminance is 0.0559 and perceived brightness is 27%, so white text on it reaches 9.92:1.

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

White. It scores 9.92:1 against #2f3f7b, versus 2.12:1 for black — AAA at any size.

What is the complementary color of #2f3f7b?

#7B6B2F sits directly opposite on the wheel. Softer options are the split-complements #7B452F and #657B2F, which give the same contrast with far less vibration.

What colors go well with #2f3f7b?

For interface work: #F4F6FA as the surface, #C4CCE8 for borders, #4B5B9B for secondary text, #7E582C as an accent and #232F5C for hover and pressed states. For a palette, the analogous pair #2F657B and #452F7B stays calm, while #7B6B2F is the loudest partner.

What is #2f3f7b in CMYK for printing?

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

Is #2f3f7b 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 #3B2F7B; nudged cooler, #2D4D7D.

Work with #2f3f7b in the Color Lab