Skip to content

#030ba2

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

RGB
3, 11, 162
HSL
237°, 96%, 32%
CMYK
98, 93, 0, 37
Luminance
0.0287

At a glance

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

Hex
#030ba2
Hue
237°
blue
Saturation
96%
electric
Lightness
32%
dark
Brightness
64%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0287
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
13.35:1
Closest name
Dark Blue
ΔE2000 3.6
Where it sits
Hue237° of 360°
Saturation96%
Lightness32%
Temperature
Warm ← → Cool85% 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#030ba2
RGBrgb(3, 11, 162)
HSLhsl(237, 96%, 32%)
CMYKcmyk(98%, 93%, 0%, 37%)
LABlab(19.5 53.3 -75.0)
LCHlch(19.5 92.0 305.4)
OKLCHoklch(0.330 0.218 264.7)
Decimal199586
Display P3color(display-p3 0.012 0.043 0.635)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#030ba2 on white: 13.35:1
AA ✓ pass · AA-large · AAA
Aa
#030ba2 on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0037A6
deuteranopia · #0026A0
tritanopia · #00435E

Color scale — 50 to 950

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

#F1F2FD
#E4E5FC
#C1C4FA
#9196FD
#5A62FC
#232DFB
#0410F0
#040EC8
#030ba2
#070C73
#040848
Base = 800Lightest = 50 · #F1F2FDDarkest = 950 · #040848
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E5FC;
  --brand-200: #C1C4FA;
  --brand-300: #9196FD;
  --brand-400: #5A62FC;
  --brand-500: #232DFB;
  --brand-600: #0410F0;
  --brand-700: #040EC8;
  --brand-800: #030ba2;
  --brand-900: #070C73;
  --brand-950: #040848;
  --brand: #030ba2;
  --brand-ink: #ffffff;
}

Colors that work with #030ba2

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#C0C2ED
Hairlines and dividers
Muted text#4B4F9B
Captions on the surface
Accent#A57400
Second voice, not a rival
Dark variant#02087D
Hover, pressed, headers
Light variant#E6E7FF
Selected rows, tints
Dark surface#141424
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 #030ba2

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#A29A03
Analogous left#035BA2
Analogous right#4B03A2
Split-complement 1#A24B03
Split-complement 2#5BA203
Triadic 1#A2030B
Triadic 2#0BA203
Tetradic#A2035B

RGB percentages

Red1.2%
Green4.3%
Blue63.5%

CMYK percentages

Cyan98.1%
Magenta93.2%
Yellow0.0%
Key (black)36.5%

Color previews

#030ba2 text on a black background

contrast 1.57:1

Card sample

#030ba2 text on a white background

contrast 13.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 11, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 11, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #030ba2;
background: linear-gradient(135deg, #030ba2, #6503A2);

Monochromatic scale

Palettes built from #030ba2

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.

#030ba2 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.

#030ba2, answered

What color is #030ba2?

#030ba2 is a dark electric blue, closest to Dark Blue (ΔE2000 3.6). It sits at 237° on the hue wheel with 96% saturation and 32% lightness, which reads as cool.

What is the RGB value of #030ba2?

rgb(3, 11, 162) — 3 red, 11 green and 162 blue out of 255, or 1.2% / 4.3% / 63.5% by channel.

Is #030ba2 a light or a dark color?

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

Should I use black or white text on #030ba2?

White. It scores 13.35:1 against #030ba2, versus 1.57:1 for black — AAA at any size.

What is the complementary color of #030ba2?

#A29A03 sits directly opposite on the wheel. Softer options are the split-complements #A24B03 and #5BA203, which give the same contrast with far less vibration.

What colors go well with #030ba2?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4F9B for secondary text, #A57400 as an accent and #02087D for hover and pressed states. For a palette, the analogous pair #035BA2 and #4B03A2 stays calm, while #A29A03 is the loudest partner.

What is #030ba2 in CMYK for printing?

cmyk(98%, 93%, 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 #030ba2 warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3503A2; nudged cooler, #012FA4.

Work with #030ba2 in the Color Lab