Skip to content

#032d7f

a dark, electric blue · cool · closest name: Midnight Blue

RGB
3, 45, 127
HSL
220°, 95%, 26%
CMYK
98, 65, 0, 50
Luminance
0.0343

At a glance

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

Hex
#032d7f
Hue
220°
blue
Saturation
95%
electric
Lightness
26%
dark
Brightness
50%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0343
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.46:1
Closest name
Midnight Blue
ΔE2000 6.9
Where it sits
Hue220° of 360°
Saturation95%
Lightness26%
Temperature
Warm ← → Cool95% 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#032d7f
RGBrgb(3, 45, 127)
HSLhsl(220, 95%, 26%)
CMYKcmyk(98%, 65%, 0%, 50%)
LABlab(21.7 22.5 -49.6)
LCHlch(21.7 54.5 294.3)
OKLCHoklch(0.333 0.145 261.9)
Decimal208255
Display P3color(display-p3 0.012 0.176 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#032d7f on white: 12.46:1
AA ✓ pass · AA-large · AAA
Aa
#032d7f on black: 1.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003A82
deuteranopia · #002F7D
tritanopia · #004351

Color scale — 50 to 950

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

#F1F5FD
#E4ECFC
#C2D5FA
#91B6FC
#5B91FB
#246CFA
#0655EF
#0547C7
#04389F
#032d7f
#051B48
Base = 900Lightest = 50 · #F1F5FDDarkest = 950 · #051B48
:root {
  --brand-50: #F1F5FD;
  --brand-100: #E4ECFC;
  --brand-200: #C2D5FA;
  --brand-300: #91B6FC;
  --brand-400: #5B91FB;
  --brand-500: #246CFA;
  --brand-600: #0655EF;
  --brand-700: #0547C7;
  --brand-800: #04389F;
  --brand-900: #032d7f;
  --brand-950: #051B48;
  --brand: #032d7f;
  --brand-ink: #ffffff;
}

Colors that work with #032d7f

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#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#823600
Second voice, not a rival
Dark variant#032C7D
Hover, pressed, headers
Light variant#E6EEFE
Selected rows, tints
Dark surface#141924
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 #032d7f

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#7F5503
Analogous left#036B7F
Analogous right#17037F
Split-complement 1#7F1703
Split-complement 2#6B7F03
Triadic 1#7F032D
Triadic 2#2D7F03
Tetradic#7F036B

RGB percentages

Red1.2%
Green17.6%
Blue49.8%

CMYK percentages

Cyan97.6%
Magenta64.6%
Yellow0.0%
Key (black)50.2%

Color previews

#032d7f text on a black background

contrast 1.69:1

Card sample

#032d7f text on a white background

contrast 12.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 45, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 45, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #032d7f;
background: linear-gradient(135deg, #032d7f, #2C037F);

Monochromatic scale

Palettes built from #032d7f

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.

#032d7f 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.

#032d7f, answered

What color is #032d7f?

#032d7f is a dark electric blue, closest to Midnight Blue (ΔE2000 6.9). It sits at 220° on the hue wheel with 95% saturation and 26% lightness, which reads as cool.

What is the RGB value of #032d7f?

rgb(3, 45, 127) — 3 red, 45 green and 127 blue out of 255, or 1.2% / 17.6% / 49.8% by channel.

Is #032d7f a light or a dark color?

It is a dark color. Relative luminance is 0.0343 and perceived brightness is 22%, so white text on it reaches 12.46:1.

Should I use black or white text on #032d7f?

White. It scores 12.46:1 against #032d7f, versus 1.69:1 for black — AAA at any size.

What is the complementary color of #032d7f?

#7F5503 sits directly opposite on the wheel. Softer options are the split-complements #7F1703 and #6B7F03, which give the same contrast with far less vibration.

What colors go well with #032d7f?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #823600 as an accent and #032C7D for hover and pressed states. For a palette, the analogous pair #036B7F and #17037F stays calm, while #7F5503 is the loudest partner.

What is #032d7f in CMYK for printing?

cmyk(98%, 65%, 0%, 50%). 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 #032d7f warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #07037F; nudged cooler, #012C67.

Work with #032d7f in the Color Lab