Skip to content

#2f467b

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

RGB
47, 70, 123
HSL
222°, 45%, 33%
CMYK
62, 43, 0, 52
Luminance
0.0641

At a glance

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

Hex
#2f467b
Hue
222°
blue
Saturation
45%
soft
Lightness
33%
dark
Brightness
48%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0641
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Soft
Best ink
White
9.20:1
Closest name
Dark Slate Blue
ΔE2000 8.1
Where it sits
Hue222° of 360°
Saturation45%
Lightness33%
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#2f467b
RGBrgb(47, 70, 123)
HSLhsl(222, 45%, 33%)
CMYKcmyk(62%, 43%, 0%, 52%)
LABlab(30.4 8.8 -32.9)
LCHlch(30.4 34.0 285.0)
OKLCHoklch(0.403 0.094 264.8)
Decimal3098235
Display P3color(display-p3 0.184 0.275 0.482)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f467b on white: 9.20:1
AA ✓ pass · AA-large · AAA
Aa
#2f467b on black: 2.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2F4B7D
deuteranopia · #24447A
tritanopia · #00525A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2f467b 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
#EAEEF5
#D1D9EB
#AEBDE0
#859CD0
#5D7BC1
#4465B1
#385494
#2f467b
#243356
#172036
Base = 800Lightest = 50 · #F5F6FADarkest = 950 · #172036
:root {
  --brand-50: #F5F6FA;
  --brand-100: #EAEEF5;
  --brand-200: #D1D9EB;
  --brand-300: #AEBDE0;
  --brand-400: #859CD0;
  --brand-500: #5D7BC1;
  --brand-600: #4465B1;
  --brand-700: #385494;
  --brand-800: #2f467b;
  --brand-900: #243356;
  --brand-950: #172036;
  --brand: #2f467b;
  --brand-ink: #ffffff;
}

Colors that work with #2f467b

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#C4CFE8
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#7E512C
Second voice, not a rival
Dark variant#23355C
Hover, pressed, headers
Light variant#EDF0F8
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 #2f467b

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#7B642F
Analogous left#2F6C7B
Analogous right#3E2F7B
Split-complement 1#7B3E2F
Split-complement 2#6C7B2F
Triadic 1#7B2F46
Triadic 2#467B2F
Tetradic#7B2F6C

RGB percentages

Red18.4%
Green27.5%
Blue48.2%

CMYK percentages

Cyan61.8%
Magenta43.1%
Yellow0.0%
Key (black)51.8%

Color previews

#2f467b text on a black background

contrast 2.28:1

Card sample

#2f467b text on a white background

contrast 9.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f467b

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.

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

#2f467b, answered

What color is #2f467b?

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

What is the RGB value of #2f467b?

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

Is #2f467b a light or a dark color?

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

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

White. It scores 9.20:1 against #2f467b, versus 2.28:1 for black — AAA at any size.

What is the complementary color of #2f467b?

#7B642F sits directly opposite on the wheel. Softer options are the split-complements #7B3E2F and #6C7B2F, which give the same contrast with far less vibration.

What colors go well with #2f467b?

For interface work: #F4F6FA as the surface, #C4CFE8 for borders, #4B639B for secondary text, #7E512C as an accent and #23355C for hover and pressed states. For a palette, the analogous pair #2F6C7B and #3E2F7B stays calm, while #7B642F is the loudest partner.

What is #2f467b in CMYK for printing?

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

Is #2f467b 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 #342F7B; nudged cooler, #2D4F7D.

Work with #2f467b in the Color Lab