Skip to content

#030daf

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

RGB
3, 13, 175
HSL
237°, 97%, 35%
CMYK
98, 93, 0, 31
Luminance
0.0340

At a glance

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

Hex
#030daf
Hue
237°
blue
Saturation
97%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0340
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
12.50:1
Closest name
Medium Blue
ΔE2000 3.7
Where it sits
Hue237° of 360°
Saturation97%
Lightness35%
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#030daf
RGBrgb(3, 13, 175)
HSLhsl(237, 97%, 35%)
CMYKcmyk(98%, 93%, 0%, 31%)
LABlab(21.6 56.4 -79.4)
LCHlch(21.6 97.3 305.4)
OKLCHoklch(0.349 0.231 264.6)
Decimal200111
Display P3color(display-p3 0.012 0.051 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#030daf on white: 12.50:1
AA ✓ pass · AA-large · AAA
Aa
#030daf on black: 1.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003CB3
deuteranopia · #002AAD
tritanopia · #004966

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #030daf 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
#C1C4FB
#9197FD
#5A63FC
#222FFB
#0412F1
#030FC9
#030daf
#070D74
#040848
Base = 800Lightest = 50 · #F1F2FDDarkest = 950 · #040848
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E5FC;
  --brand-200: #C1C4FB;
  --brand-300: #9197FD;
  --brand-400: #5A63FC;
  --brand-500: #222FFB;
  --brand-600: #0412F1;
  --brand-700: #030FC9;
  --brand-800: #030daf;
  --brand-900: #070D74;
  --brand-950: #040848;
  --brand: #030daf;
  --brand-ink: #ffffff;
}

Colors that work with #030daf

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#B27B00
Second voice, not a rival
Dark variant#02097D
Hover, pressed, headers
Light variant#E6E7FF
Selected rows, tints
Dark surface#141524
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 #030daf

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#AFA503
Analogous left#0363AF
Analogous right#4F03AF
Split-complement 1#AF4F03
Split-complement 2#63AF03
Triadic 1#AF030D
Triadic 2#0DAF03
Tetradic#AF0363

RGB percentages

Red1.2%
Green5.1%
Blue68.6%

CMYK percentages

Cyan98.3%
Magenta92.6%
Yellow0.0%
Key (black)31.4%

Color previews

#030daf text on a black background

contrast 1.68:1

Card sample

#030daf text on a white background

contrast 12.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 13, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 13, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #030daf;
background: linear-gradient(135deg, #030daf, #6C03AF);

Monochromatic scale

Palettes built from #030daf

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.

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

#030daf, answered

What color is #030daf?

#030daf is a dark electric blue, closest to Medium Blue (ΔE2000 3.7). It sits at 237° on the hue wheel with 97% saturation and 35% lightness, which reads as cool.

What is the RGB value of #030daf?

rgb(3, 13, 175) — 3 red, 13 green and 175 blue out of 255, or 1.2% / 5.1% / 68.6% by channel.

Is #030daf a light or a dark color?

It is a dark color. Relative luminance is 0.0340 and perceived brightness is 24%, so white text on it reaches 12.50:1.

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

White. It scores 12.50:1 against #030daf, versus 1.68:1 for black — AAA at any size.

What is the complementary color of #030daf?

#AFA503 sits directly opposite on the wheel. Softer options are the split-complements #AF4F03 and #63AF03, which give the same contrast with far less vibration.

What colors go well with #030daf?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4F9B for secondary text, #B27B00 as an accent and #02097D for hover and pressed states. For a palette, the analogous pair #0363AF and #4F03AF stays calm, while #AFA503 is the loudest partner.

What is #030daf in CMYK for printing?

cmyk(98%, 93%, 0%, 31%). 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 #030daf 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 #3803AF; nudged cooler, #0132B1.

Work with #030daf in the Color Lab