Skip to content

#2e4eb7

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

RGB
46, 78, 183
HSL
226°, 60%, 45%
CMYK
75, 57, 0, 28
Luminance
0.0945

At a glance

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

Hex
#2e4eb7
Hue
226°
blue
Saturation
60%
vivid
Lightness
45%
dark
Brightness
72%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0945
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.27:1
Closest name
Dark Slate Blue
ΔE2000 9.9
Where it sits
Hue226° of 360°
Saturation60%
Lightness45%
Temperature
Warm ← → Cool91% 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#2e4eb7
RGBrgb(46, 78, 183)
HSLhsl(226, 60%, 45%)
CMYKcmyk(75%, 57%, 0%, 28%)
LABlab(36.8 25.8 -58.9)
LCHlch(36.8 64.4 293.7)
OKLCHoklch(0.465 0.170 266.7)
Decimal3034807
Display P3color(display-p3 0.180 0.306 0.718)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2e4eb7 on white: 7.27:1
AA ✓ pass · AA-large · AAA
Aa
#2e4eb7 on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DBB
deuteranopia · #0051B5
tritanopia · #00687B

Color scale — 50 to 950

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

#F4F5FB
#E9ECF7
#CCD5EF
#A5B5E8
#7990DD
#4C6BD2
#2e4eb7
#2945A3
#213882
#1C2B5F
#111B3B
Base = 600Lightest = 50 · #F4F5FBDarkest = 950 · #111B3B
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E9ECF7;
  --brand-200: #CCD5EF;
  --brand-300: #A5B5E8;
  --brand-400: #7990DD;
  --brand-500: #4C6BD2;
  --brand-600: #2e4eb7;
  --brand-700: #2945A3;
  --brand-800: #213882;
  --brand-900: #1C2B5F;
  --brand-950: #111B3B;
  --brand: #2e4eb7;
  --brand-ink: #ffffff;
}

Colors that work with #2e4eb7

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#C0CAED
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#BC7529
Second voice, not a rival
Dark variant#1A2B66
Hover, pressed, headers
Light variant#EBEEFA
Selected rows, tints
Dark surface#141824
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 #2e4eb7

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#B7972E
Analogous left#2E92B7
Analogous right#532EB7
Split-complement 1#B7532E
Split-complement 2#92B72E
Triadic 1#B72E4E
Triadic 2#4EB72E
Tetradic#B72E92

RGB percentages

Red18.0%
Green30.6%
Blue71.8%

CMYK percentages

Cyan74.9%
Magenta57.4%
Yellow0.0%
Key (black)28.2%

Color previews

#2e4eb7 text on a black background

contrast 2.89:1

Card sample

#2e4eb7 text on a white background

contrast 7.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(46, 78, 183, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 78, 183, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2e4eb7;
background: linear-gradient(135deg, #2e4eb7, #692EB7);

Monochromatic scale

Palettes built from #2e4eb7

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.

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

#2e4eb7, answered

What color is #2e4eb7?

#2e4eb7 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 9.9). It sits at 226° on the hue wheel with 60% saturation and 45% lightness, which reads as cool.

What is the RGB value of #2e4eb7?

rgb(46, 78, 183) — 46 red, 78 green and 183 blue out of 255, or 18% / 30.6% / 71.8% by channel.

Is #2e4eb7 a light or a dark color?

It is a dark color. Relative luminance is 0.0945 and perceived brightness is 35%, so white text on it reaches 7.27:1.

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

White. It scores 7.27:1 against #2e4eb7, versus 2.89:1 for black — AAA at any size.

What is the complementary color of #2e4eb7?

#B7972E sits directly opposite on the wheel. Softer options are the split-complements #B7532E and #92B72E, which give the same contrast with far less vibration.

What colors go well with #2e4eb7?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5D9B for secondary text, #BC7529 as an accent and #1A2B66 for hover and pressed states. For a palette, the analogous pair #2E92B7 and #532EB7 stays calm, while #B7972E is the loudest partner.

What is #2e4eb7 in CMYK for printing?

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

Is #2e4eb7 warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #402EB7; nudged cooler, #2C61B9.

Work with #2e4eb7 in the Color Lab