Skip to content

#2f4b68

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

RGB
47, 75, 104
HSL
211°, 38%, 30%
CMYK
55, 28, 0, 59
Luminance
0.0664

At a glance

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

Hex
#2f4b68
Hue
211°
blue
Saturation
38%
soft
Lightness
30%
dark
Brightness
41%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0664
WCAG relative
Temperature
Cool
100/100 cool
Color family
Blue
Tone
Soft
Best ink
White
9.02:1
Closest name
Dark Slate Blue
ΔE2000 10.7
Where it sits
Hue211° of 360°
Saturation38%
Lightness30%
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#2f4b68
RGBrgb(47, 75, 104)
HSLhsl(211, 38%, 30%)
CMYKcmyk(55%, 28%, 0%, 59%)
LABlab(31.0 -1.3 -20.1)
LCHlch(31.0 20.1 266.3)
OKLCHoklch(0.404 0.060 250.3)
Decimal3099496
Display P3color(display-p3 0.184 0.294 0.408)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4b68 on white: 9.02:1
AA ✓ pass · AA-large · AAA
Aa
#2f4b68 on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3F4C69
deuteranopia · #384667
tritanopia · #115255

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f4b68 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
#EBF0F4
#D3DEE9
#B2C7DC
#8BAACB
#658EB9
#4C7AA9
#40658C
#2f4b68
#283D52
#192634
Base = 800Lightest = 50 · #F5F7FADarkest = 950 · #192634
:root {
  --brand-50: #F5F7FA;
  --brand-100: #EBF0F4;
  --brand-200: #D3DEE9;
  --brand-300: #B2C7DC;
  --brand-400: #8BAACB;
  --brand-500: #658EB9;
  --brand-600: #4C7AA9;
  --brand-700: #40658C;
  --brand-800: #2f4b68;
  --brand-900: #283D52;
  --brand-950: #192634;
  --brand: #2f4b68;
  --brand-ink: #ffffff;
}

Colors that work with #2f4b68

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#C7D6E6
Hairlines and dividers
Muted text#4B729B
Captions on the surface
Accent#6B3C2C
Second voice, not a rival
Dark variant#283F58
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 #2f4b68

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#684C2F
Analogous left#2F6768
Analogous right#2F2F68
Split-complement 1#682F2F
Split-complement 2#67682F
Triadic 1#682F4B
Triadic 2#4B682F
Tetradic#682F67

RGB percentages

Red18.4%
Green29.4%
Blue40.8%

CMYK percentages

Cyan54.8%
Magenta27.9%
Yellow0.0%
Key (black)59.2%

Color previews

#2f4b68 text on a black background

contrast 2.33:1

Card sample

#2f4b68 text on a white background

contrast 9.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4b68

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.

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

#2f4b68, answered

What color is #2f4b68?

#2f4b68 is a dark soft blue, closest to Dark Slate Blue (ΔE2000 10.7). It sits at 211° on the hue wheel with 38% saturation and 30% lightness, which reads as cool.

What is the RGB value of #2f4b68?

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

Is #2f4b68 a light or a dark color?

It is a dark color. Relative luminance is 0.0664 and perceived brightness is 28%, so white text on it reaches 9.02:1.

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

White. It scores 9.02:1 against #2f4b68, versus 2.33:1 for black — AAA at any size.

What is the complementary color of #2f4b68?

#684C2F sits directly opposite on the wheel. Softer options are the split-complements #682F2F and #67682F, which give the same contrast with far less vibration.

What colors go well with #2f4b68?

For interface work: #F4F7FA as the surface, #C7D6E6 for borders, #4B729B for secondary text, #6B3C2C as an accent and #283F58 for hover and pressed states. For a palette, the analogous pair #2F6768 and #2F2F68 stays calm, while #684C2F is the loudest partner.

What is #2f4b68 in CMYK for printing?

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

Is #2f4b68 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 #2F3668; nudged cooler, #263E58.

Work with #2f4b68 in the Color Lab