Skip to content

#2a3eb0

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

RGB
42, 62, 176
HSL
231°, 62%, 43%
CMYK
76, 65, 0, 31
Luminance
0.0707

At a glance

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

Hex
#2a3eb0
Hue
231°
blue
Saturation
62%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0707
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
8.70:1
Closest name
Dark Slate Blue
ΔE2000 7.4
Where it sits
Hue231° of 360°
Saturation62%
Lightness43%
Temperature
Warm ← → Cool88% 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#2a3eb0
RGBrgb(42, 62, 176)
HSLhsl(231, 62%, 43%)
CMYKcmyk(76%, 65%, 0%, 31%)
LABlab(32.0 33.2 -62.7)
LCHlch(32.0 71.0 297.9)
OKLCHoklch(0.427 0.181 269.2)
Decimal2768560
Display P3color(display-p3 0.165 0.243 0.690)

Copy-ready code

/* CSS */
color: #2a3eb0;
background-color: #2a3eb0;
/* Tailwind (arbitrary) */
class="text-[#2a3eb0] bg-[#2a3eb0]"
/* SCSS */
$brand: #2a3eb0;
/* SwiftUI */
Color(red: 0.165, green: 0.243, blue: 0.690)
/* Android */
Color.parseColor("#2a3eb0")
/* Flutter */
Color(0xFF2A3EB0)
/* Python / OpenCV (BGR) */
(176, 62, 42)

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

Accessibility — WCAG contrast

Aa
#2a3eb0 on white: 8.70:1
AA ✓ pass · AA-large · AAA
Aa
#2a3eb0 on black: 2.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052B4
deuteranopia · #0045AE
tritanopia · #005C71

Color scale — 50 to 950

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

#F4F5FB
#E8EBF7
#CCD1F0
#A4AFE9
#7787DF
#4A5ED4
#2F46C6
#2a3eb0
#1F2E84
#1B2560
#11173C
Base = 700Lightest = 50 · #F4F5FBDarkest = 950 · #11173C
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E8EBF7;
  --brand-200: #CCD1F0;
  --brand-300: #A4AFE9;
  --brand-400: #7787DF;
  --brand-500: #4A5ED4;
  --brand-600: #2F46C6;
  --brand-700: #2a3eb0;
  --brand-800: #1F2E84;
  --brand-900: #1B2560;
  --brand-950: #11173C;
  --brand: #2a3eb0;
  --brand-ink: #ffffff;
}

Colors that work with #2a3eb0

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#F4F5FA
Tinted page background
Border#C0C6ED
Hairlines and dividers
Muted text#4B579B
Captions on the surface
Accent#B47B26
Second voice, not a rival
Dark variant#192467
Hover, pressed, headers
Light variant#EAEDFA
Selected rows, tints
Dark surface#141624
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 #2a3eb0

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#B09C2A
Analogous left#2A81B0
Analogous right#592AB0
Split-complement 1#B0592A
Split-complement 2#81B02A
Triadic 1#B02A3E
Triadic 2#3EB02A
Tetradic#B02A81

RGB percentages

Red16.5%
Green24.3%
Blue69.0%

CMYK percentages

Cyan76.1%
Magenta64.8%
Yellow0.0%
Key (black)31.0%

Color previews

#2a3eb0 text on a black background

contrast 2.41:1

Card sample

#2a3eb0 text on a white background

contrast 8.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 62, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 62, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a3eb0;
background: linear-gradient(135deg, #2a3eb0, #6F2AB0);

Monochromatic scale

Palettes built from #2a3eb0

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.

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

#2a3eb0, answered

What color is #2a3eb0?

#2a3eb0 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 7.4). It sits at 231° on the hue wheel with 62% saturation and 43% lightness, which reads as cool.

What is the RGB value of #2a3eb0?

rgb(42, 62, 176) — 42 red, 62 green and 176 blue out of 255, or 16.5% / 24.3% / 69% by channel.

Is #2a3eb0 a light or a dark color?

It is a dark color. Relative luminance is 0.0707 and perceived brightness is 31%, so white text on it reaches 8.70:1.

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

White. It scores 8.70:1 against #2a3eb0, versus 2.41:1 for black — AAA at any size.

What is the complementary color of #2a3eb0?

#B09C2A sits directly opposite on the wheel. Softer options are the split-complements #B0592A and #81B02A, which give the same contrast with far less vibration.

What colors go well with #2a3eb0?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B579B for secondary text, #B47B26 as an accent and #192467 for hover and pressed states. For a palette, the analogous pair #2A81B0 and #592AB0 stays calm, while #B09C2A is the loudest partner.

What is #2a3eb0 in CMYK for printing?

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

Is #2a3eb0 warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #472AB0; nudged cooler, #2857B2.

Work with #2a3eb0 in the Color Lab