Skip to content

#034aba

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

RGB
3, 74, 186
HSL
217°, 97%, 37%
CMYK
98, 60, 0, 27
Luminance
0.0846

At a glance

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

Hex
#034aba
Hue
217°
blue
Saturation
97%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0846
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.80:1
Closest name
Dark Slate Blue
ΔE2000 10.9
Where it sits
Hue217° of 360°
Saturation97%
Lightness37%
Temperature
Warm ← → Cool96% 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#034aba
RGBrgb(3, 74, 186)
HSLhsl(217, 97%, 37%)
CMYKcmyk(98%, 60%, 0%, 27%)
LABlab(34.9 26.7 -63.9)
LCHlch(34.9 69.2 292.7)
OKLCHoklch(0.448 0.188 260.7)
Decimal215738
Display P3color(display-p3 0.012 0.290 0.729)

Copy-ready code

/* CSS */
color: #034aba;
background-color: #034aba;
/* Tailwind (arbitrary) */
class="text-[#034aba] bg-[#034aba]"
/* SCSS */
$brand: #034aba;
/* SwiftUI */
Color(red: 0.012, green: 0.290, blue: 0.729)
/* Android */
Color.parseColor("#034aba")
/* Flutter */
Color(0xFF034ABA)
/* Python / OpenCV (BGR) */
(186, 74, 3)

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

Accessibility — WCAG contrast

Aa
#034aba on white: 7.80:1
AA ✓ pass · AA-large · AAA
Aa
#034aba on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005ABE
deuteranopia · #004BB8
tritanopia · #00677B

Color scale — 50 to 950

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

#F1F6FD
#E4EDFC
#C1D7FB
#91BBFD
#5999FC
#2277FB
#0460F1
#034aba
#0340A1
#073174
#041F48
Base = 700Lightest = 50 · #F1F6FDDarkest = 950 · #041F48
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4EDFC;
  --brand-200: #C1D7FB;
  --brand-300: #91BBFD;
  --brand-400: #5999FC;
  --brand-500: #2277FB;
  --brand-600: #0460F1;
  --brand-700: #034aba;
  --brand-800: #0340A1;
  --brand-900: #073174;
  --brand-950: #041F48;
  --brand: #034aba;
  --brand-ink: #ffffff;
}

Colors that work with #034aba

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#C0D1ED
Hairlines and dividers
Muted text#4B6A9B
Captions on the surface
Accent#BD4400
Second voice, not a rival
Dark variant#02327D
Hover, pressed, headers
Light variant#E6EFFF
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 #034aba

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#BA7303
Analogous left#03A6BA
Analogous right#1703BA
Split-complement 1#BA1703
Split-complement 2#A6BA03
Triadic 1#BA034A
Triadic 2#4ABA03
Tetradic#BA03A6

RGB percentages

Red1.2%
Green29.0%
Blue72.9%

CMYK percentages

Cyan98.4%
Magenta60.2%
Yellow0.0%
Key (black)27.1%

Color previews

#034aba text on a black background

contrast 2.69:1

Card sample

#034aba text on a white background

contrast 7.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #034aba;
Background color
Panel with #034aba background
background-color: #034aba;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 74, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 74, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034aba;
background: linear-gradient(135deg, #034aba, #3603BA);

Monochromatic scale

Palettes built from #034aba

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.

#034aba 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#034aba, answered

What color is #034aba?

#034aba is a dark electric blue, closest to Dark Slate Blue (ΔE2000 10.9). It sits at 217° on the hue wheel with 97% saturation and 37% lightness, which reads as cool.

What is the RGB value of #034aba?

rgb(3, 74, 186) — 3 red, 74 green and 186 blue out of 255, or 1.2% / 29% / 72.9% by channel.

Is #034aba a light or a dark color?

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

Should I use black or white text on #034aba?

White. It scores 7.80:1 against #034aba, versus 2.69:1 for black — AAA at any size.

What is the complementary color of #034aba?

#BA7303 sits directly opposite on the wheel. Softer options are the split-complements #BA1703 and #A6BA03, which give the same contrast with far less vibration.

What colors go well with #034aba?

For interface work: #F4F7FA as the surface, #C0D1ED for borders, #4B6A9B for secondary text, #BD4400 as an accent and #02327D for hover and pressed states. For a palette, the analogous pair #03A6BA and #1703BA stays calm, while #BA7303 is the loudest partner.

What is #034aba in CMYK for printing?

cmyk(98%, 60%, 0%, 27%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #034aba warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0307BA; nudged cooler, #0147A3.

Work with #034aba in the Color Lab