Skip to content

#2e548c

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

RGB
46, 84, 140
HSL
216°, 51%, 37%
CMYK
67, 40, 0, 45
Luminance
0.0881

At a glance

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

Hex
#2e548c
Hue
216°
blue
Saturation
51%
vivid
Lightness
37%
dark
Brightness
55%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0881
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.60:1
Closest name
Dark Slate Blue
ΔE2000 11.6
Where it sits
Hue216° of 360°
Saturation51%
Lightness37%
Temperature
Warm ← → Cool97% 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#2e548c
RGBrgb(46, 84, 140)
HSLhsl(216, 51%, 37%)
CMYKcmyk(67%, 40%, 0%, 45%)
LABlab(35.6 5.6 -35.1)
LCHlch(35.6 35.6 279.1)
OKLCHoklch(0.447 0.102 258.0)
Decimal3036300
Display P3color(display-p3 0.180 0.329 0.549)

Copy-ready code

/* CSS */
color: #2e548c;
background-color: #2e548c;
/* Tailwind (arbitrary) */
class="text-[#2e548c] bg-[#2e548c]"
/* SCSS */
$brand: #2e548c;
/* SwiftUI */
Color(red: 0.180, green: 0.329, blue: 0.549)
/* Android */
Color.parseColor("#2e548c")
/* Flutter */
Color(0xFF2E548C)
/* Python / OpenCV (BGR) */
(140, 84, 46)

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 #2e548c · 7.60:1
Use #ffffffAAA at every size.
Aa
White text · 7.60:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.76:1
AA fail · AA large fail · AAA fail
Reading the other direction: #2e548c as text scores 7.60:1 on white and 2.76:1 on black.

Accessibility — WCAG contrast

Aa
#2e548c on white: 7.60:1
AA ✓ pass · AA-large · AAA
Aa
#2e548c on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B598E
deuteranopia · #2D508B
tritanopia · #006169

Color scale — 50 to 950

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

#F4F7FA
#EAEFF6
#CFDBED
#ABC2E3
#80A3D5
#5684C7
#3D6FB8
#2e548c
#284A7B
#21385A
#142338
Base = 700Lightest = 50 · #F4F7FADarkest = 950 · #142338
:root {
  --brand-50: #F4F7FA;
  --brand-100: #EAEFF6;
  --brand-200: #CFDBED;
  --brand-300: #ABC2E3;
  --brand-400: #80A3D5;
  --brand-500: #5684C7;
  --brand-600: #3D6FB8;
  --brand-700: #2e548c;
  --brand-800: #284A7B;
  --brand-900: #21385A;
  --brand-950: #142338;
  --brand: #2e548c;
  --brand-ink: #ffffff;
}

Colors that work with #2e548c

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#C2D2EB
Hairlines and dividers
Muted text#4B6B9B
Captions on the surface
Accent#904D2A
Second voice, not a rival
Dark variant#203A60
Hover, pressed, headers
Light variant#ECF1F9
Selected rows, tints
Dark surface#141A24
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 #2e548c

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#8C662E
Analogous left#2E838C
Analogous right#372E8C
Split-complement 1#8C372E
Split-complement 2#838C2E
Triadic 1#8C2E54
Triadic 2#548C2E
Tetradic#8C2E83

RGB percentages

Red18.0%
Green32.9%
Blue54.9%

CMYK percentages

Cyan67.1%
Magenta40.0%
Yellow0.0%
Key (black)45.1%

Color previews

#2e548c text on a black background

contrast 2.76:1

Card sample

#2e548c text on a white background

contrast 7.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(46, 84, 140, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 84, 140, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2e548c;
background: linear-gradient(135deg, #2e548c, #472E8C);

Monochromatic scale

Palettes built from #2e548c

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.

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

#2e548c, answered

What color is #2e548c?

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

What is the RGB value of #2e548c?

rgb(46, 84, 140) — 46 red, 84 green and 140 blue out of 255, or 18% / 32.9% / 54.9% by channel.

Is #2e548c a light or a dark color?

It is a dark color. Relative luminance is 0.0881 and perceived brightness is 33%, so white text on it reaches 7.60:1.

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

White. It scores 7.60:1 against #2e548c, versus 2.76:1 for black — AAA at any size.

What is the complementary color of #2e548c?

#8C662E sits directly opposite on the wheel. Softer options are the split-complements #8C372E and #838C2E, which give the same contrast with far less vibration.

What colors go well with #2e548c?

For interface work: #F4F7FA as the surface, #C2D2EB for borders, #4B6B9B for secondary text, #904D2A as an accent and #203A60 for hover and pressed states. For a palette, the analogous pair #2E838C and #372E8C stays calm, while #8C662E is the loudest partner.

What is #2e548c in CMYK for printing?

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

Is #2e548c warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2E328C; nudged cooler, #264C7A.

Work with #2e548c in the Color Lab