Skip to content

#034271

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

RGB
3, 66, 113
HSL
206°, 95%, 23%
CMYK
97, 42, 0, 56
Luminance
0.0511

At a glance

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

Hex
#034271
Hue
206°
blue
Saturation
95%
electric
Lightness
23%
deep
Brightness
44%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0511
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.39:1
Closest name
Dark Slate Blue
ΔE2000 13.1
Where it sits
Hue206° of 360°
Saturation95%
Lightness23%
Temperature
Warm ← → Cool98% 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#034271
RGBrgb(3, 66, 113)
HSLhsl(206, 95%, 23%)
CMYKcmyk(97%, 42%, 0%, 56%)
LABlab(27.0 1.4 -32.1)
LCHlch(27.0 32.1 272.5)
OKLCHoklch(0.371 0.099 248.5)
Decimal213617
Display P3color(display-p3 0.012 0.259 0.443)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#034271 on white: 10.39:1
AA ✓ pass · AA-large · AAA
Aa
#034271 on black: 2.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B4573
deuteranopia · #193C70
tritanopia · #004D54

Color scale — 50 to 950

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

#F1F8FD
#E4F1FB
#C2E2FA
#92CFFC
#5BB7FB
#249EF9
#068BEE
#0574C7
#045D9F
#034271
#052B48
Base = 900Lightest = 50 · #F1F8FDDarkest = 950 · #052B48
:root {
  --brand-50: #F1F8FD;
  --brand-100: #E4F1FB;
  --brand-200: #C2E2FA;
  --brand-300: #92CFFC;
  --brand-400: #5BB7FB;
  --brand-500: #249EF9;
  --brand-600: #068BEE;
  --brand-700: #0574C7;
  --brand-800: #045D9F;
  --brand-900: #034271;
  --brand-950: #052B48;
  --brand: #034271;
  --brand-ink: #ffffff;
}

Colors that work with #034271

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#F4F8FA
Tinted page background
Border#C0D9ED
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#731501
Second voice, not a rival
Dark variant#03497C
Hover, pressed, headers
Light variant#E6F4FE
Selected rows, tints
Dark surface#141D24
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 #034271

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#713203
Analogous left#037169
Analogous right#030B71
Split-complement 1#71030B
Split-complement 2#716903
Triadic 1#710342
Triadic 2#427103
Tetradic#690371

RGB percentages

Red1.2%
Green25.9%
Blue44.3%

CMYK percentages

Cyan97.3%
Magenta41.6%
Yellow0.0%
Key (black)55.7%

Color previews

#034271 text on a black background

contrast 2.02:1

Card sample

#034271 text on a white background

contrast 10.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 66, 113, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 66, 113, 0.45);
Border & gradient
Gradient panel
border: 3px solid #034271;
background: linear-gradient(135deg, #034271, #0D0371);

Monochromatic scale

Palettes built from #034271

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.

#034271 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.

#034271, answered

What color is #034271?

#034271 is a deep electric blue, closest to Dark Slate Blue (ΔE2000 13.1). It sits at 206° on the hue wheel with 95% saturation and 23% lightness, which reads as cool.

What is the RGB value of #034271?

rgb(3, 66, 113) — 3 red, 66 green and 113 blue out of 255, or 1.2% / 25.9% / 44.3% by channel.

Is #034271 a light or a dark color?

It is a dark color. Relative luminance is 0.0511 and perceived brightness is 25%, so white text on it reaches 10.39:1.

Should I use black or white text on #034271?

White. It scores 10.39:1 against #034271, versus 2.02:1 for black — AAA at any size.

What is the complementary color of #034271?

#713203 sits directly opposite on the wheel. Softer options are the split-complements #71030B and #716903, which give the same contrast with far less vibration.

What colors go well with #034271?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B799B for secondary text, #731501 as an accent and #03497C for hover and pressed states. For a palette, the analogous pair #037169 and #030B71 stays calm, while #713203 is the loudest partner.

What is #034271 in CMYK for printing?

cmyk(97%, 42%, 0%, 56%). 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 #034271 warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #031A71; nudged cooler, #012E59.

Work with #034271 in the Color Lab