Skip to content

#2f4f6f

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

RGB
47, 79, 111
HSL
210°, 41%, 31%
CMYK
58, 29, 0, 57
Luminance
0.0734

At a glance

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

Hex
#2f4f6f
Hue
210°
blue
Saturation
41%
soft
Lightness
31%
dark
Brightness
44%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0734
WCAG relative
Temperature
Cool
100/100 cool
Color family
Blue
Tone
Soft
Best ink
White
8.51:1
Closest name
Dark Slate Blue
ΔE2000 11.3
Where it sits
Hue210° of 360°
Saturation41%
Lightness31%
Temperature
Warm ← → Cool100% 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#2f4f6f
RGBrgb(47, 79, 111)
HSLhsl(210, 41%, 31%)
CMYKcmyk(58%, 29%, 0%, 57%)
LABlab(32.6 -1.4 -22.0)
LCHlch(32.6 22.0 266.3)
OKLCHoklch(0.418 0.066 249.7)
Decimal3100527
Display P3color(display-p3 0.184 0.310 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4f6f on white: 8.51:1
AA ✓ pass · AA-large · AAA
Aa
#2f4f6f on black: 2.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #425070
deuteranopia · #394A6E
tritanopia · #04565A

Color scale — 50 to 950

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

#F5F7FA
#EBF0F5
#D2DEEA
#B0C7DE
#89ABCD
#618FBC
#497AAC
#3D668F
#2f4f6f
#263D54
#182635
Base = 800Lightest = 50 · #F5F7FADarkest = 950 · #182635
:root {
  --brand-50: #F5F7FA;
  --brand-100: #EBF0F5;
  --brand-200: #D2DEEA;
  --brand-300: #B0C7DE;
  --brand-400: #89ABCD;
  --brand-500: #618FBC;
  --brand-600: #497AAC;
  --brand-700: #3D668F;
  --brand-800: #2f4f6f;
  --brand-900: #263D54;
  --brand-950: #182635;
  --brand: #2f4f6f;
  --brand-ink: #ffffff;
}

Colors that work with #2f4f6f

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#F4F7FA
Tinted page background
Border#C6D6E7
Hairlines and dividers
Muted text#4B739B
Captions on the surface
Accent#723D2C
Second voice, not a rival
Dark variant#26405A
Hover, pressed, headers
Light variant#EDF2F7
Selected rows, tints
Dark surface#141C24
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 #2f4f6f

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#6F4F2F
Analogous left#2F6F6F
Analogous right#2F2F6F
Split-complement 1#6F2F2F
Split-complement 2#6F6F2F
Triadic 1#6F2F4F
Triadic 2#4F6F2F
Tetradic#6F2F6F

RGB percentages

Red18.4%
Green31.0%
Blue43.5%

CMYK percentages

Cyan57.7%
Magenta28.8%
Yellow0.0%
Key (black)56.5%

Color previews

#2f4f6f text on a black background

contrast 2.47:1

Card sample

#2f4f6f text on a white background

contrast 8.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 79, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 79, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4f6f;
background: linear-gradient(135deg, #2f4f6f, #3A2F6F);

Monochromatic scale

Palettes built from #2f4f6f

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.

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

#2f4f6f, answered

What color is #2f4f6f?

#2f4f6f is a dark soft blue, closest to Dark Slate Blue (ΔE2000 11.3). It sits at 210° on the hue wheel with 41% saturation and 31% lightness, which reads as cool.

What is the RGB value of #2f4f6f?

rgb(47, 79, 111) — 47 red, 79 green and 111 blue out of 255, or 18.4% / 31% / 43.5% by channel.

Is #2f4f6f a light or a dark color?

It is a dark color. Relative luminance is 0.0734 and perceived brightness is 30%, so white text on it reaches 8.51:1.

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

White. It scores 8.51:1 against #2f4f6f, versus 2.47:1 for black — AAA at any size.

What is the complementary color of #2f4f6f?

#6F4F2F sits directly opposite on the wheel. Softer options are the split-complements #6F2F2F and #6F6F2F, which give the same contrast with far less vibration.

What colors go well with #2f4f6f?

For interface work: #F4F7FA as the surface, #C6D6E7 for borders, #4B739B for secondary text, #723D2C as an accent and #26405A for hover and pressed states. For a palette, the analogous pair #2F6F6F and #2F2F6F stays calm, while #6F4F2F is the loudest partner.

What is #2f4f6f in CMYK for printing?

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

Is #2f4f6f warm or cool?

Cool — it scores 100 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F386F; nudged cooler, #26415E.

Work with #2f4f6f in the Color Lab