Skip to content

#034da1

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

RGB
3, 77, 161
HSL
212°, 96%, 32%
CMYK
98, 52, 0, 37
Luminance
0.0790

At a glance

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

Hex
#034da1
Hue
212°
blue
Saturation
96%
electric
Lightness
32%
dark
Brightness
63%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0790
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.14:1
Closest name
Dark Slate Blue
ΔE2000 11.9
Where it sits
Hue212° of 360°
Saturation96%
Lightness32%
Temperature
Warm ← → Cool99% 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#034da1
RGBrgb(3, 77, 161)
HSLhsl(212, 96%, 32%)
CMYKcmyk(98%, 52%, 0%, 37%)
LABlab(33.8 14.4 -50.9)
LCHlch(33.8 52.9 285.8)
OKLCHoklch(0.433 0.151 256.9)
Decimal216481
Display P3color(display-p3 0.012 0.302 0.631)

Copy-ready code

/* CSS */
color: #034da1;
background-color: #034da1;
/* Tailwind (arbitrary) */
class="text-[#034da1] bg-[#034da1]"
/* SCSS */
$brand: #034da1;
/* SwiftUI */
Color(red: 0.012, green: 0.302, blue: 0.631)
/* Android */
Color.parseColor("#034da1")
/* Flutter */
Color(0xFF034DA1)
/* Python / OpenCV (BGR) */
(161, 77, 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 #034da1 · 8.14:1
Use #ffffffAAA at every size.
Aa
White text · 8.14:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.58:1
AA fail · AA large fail · AAA fail
Reading the other direction: #034da1 as text scores 8.14:1 on white and 2.58:1 on black.

Accessibility — WCAG contrast

Aa
#034da1 on white: 8.14:1
AA ✓ pass · AA-large · AAA
Aa
#034da1 on black: 2.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1056A4
deuteranopia · #00499F
tritanopia · #00626F

Color scale — 50 to 950

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

#F1F7FD
#E4EFFC
#C1DCFA
#91C3FD
#5AA6FC
#2388FB
#0573F0
#0460C8
#034da1
#073A73
#042448
Base = 800Lightest = 50 · #F1F7FDDarkest = 950 · #042448
:root {
  --brand-50: #F1F7FD;
  --brand-100: #E4EFFC;
  --brand-200: #C1DCFA;
  --brand-300: #91C3FD;
  --brand-400: #5AA6FC;
  --brand-500: #2388FB;
  --brand-600: #0573F0;
  --brand-700: #0460C8;
  --brand-800: #034da1;
  --brand-900: #073A73;
  --brand-950: #042448;
  --brand: #034da1;
  --brand-ink: #ffffff;
}

Colors that work with #034da1

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#C0D5ED
Hairlines and dividers
Muted text#4B709B
Captions on the surface
Accent#A42E00
Second voice, not a rival
Dark variant#023C7D
Hover, pressed, headers
Light variant#E6F1FF
Selected rows, tints
Dark surface#141C24
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 #034da1

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#A15703
Analogous left#039CA1
Analogous right#0803A1
Split-complement 1#A10803
Split-complement 2#9CA103
Triadic 1#A1034D
Triadic 2#4DA103
Tetradic#A1039C

RGB percentages

Red1.2%
Green30.2%
Blue63.1%

CMYK percentages

Cyan98.1%
Magenta52.2%
Yellow0.0%
Key (black)36.9%

Color previews

#034da1 text on a black background

contrast 2.58:1

Card sample

#034da1 text on a white background

contrast 8.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 77, 161, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 77, 161, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034da1;
background: linear-gradient(135deg, #034da1, #2203A1);

Monochromatic scale

Palettes built from #034da1

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.

#034da1 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.

#034da1, answered

What color is #034da1?

#034da1 is a dark electric blue, closest to Dark Slate Blue (ΔE2000 11.9). It sits at 212° on the hue wheel with 96% saturation and 32% lightness, which reads as cool.

What is the RGB value of #034da1?

rgb(3, 77, 161) — 3 red, 77 green and 161 blue out of 255, or 1.2% / 30.2% / 63.1% by channel.

Is #034da1 a light or a dark color?

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

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

White. It scores 8.14:1 against #034da1, versus 2.58:1 for black — AAA at any size.

What is the complementary color of #034da1?

#A15703 sits directly opposite on the wheel. Softer options are the split-complements #A10803 and #9CA103, which give the same contrast with far less vibration.

What colors go well with #034da1?

For interface work: #F4F7FA as the surface, #C0D5ED for borders, #4B709B for secondary text, #A42E00 as an accent and #023C7D for hover and pressed states. For a palette, the analogous pair #039CA1 and #0803A1 stays calm, while #A15703 is the loudest partner.

What is #034da1 in CMYK for printing?

cmyk(98%, 52%, 0%, 37%). 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 #034da1 warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0313A1; nudged cooler, #01418A.

Work with #034da1 in the Color Lab