Skip to content

#0331b2

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

RGB
3, 49, 178
HSL
224°, 97%, 36%
CMYK
98, 73, 0, 30
Luminance
0.0543

At a glance

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

Hex
#0331b2
Hue
224°
blue
Saturation
97%
electric
Lightness
36%
dark
Brightness
70%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0543
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.07:1
Closest name
Medium Blue
ΔE2000 7.7
Where it sits
Hue224° of 360°
Saturation97%
Lightness36%
Temperature
Warm ← → Cool92% 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#0331b2
RGBrgb(3, 49, 178)
HSLhsl(224, 97%, 36%)
CMYKcmyk(98%, 73%, 0%, 30%)
LABlab(27.9 40.0 -70.6)
LCHlch(27.9 81.2 299.5)
OKLCHoklch(0.395 0.206 263.7)
Decimal209330
Display P3color(display-p3 0.012 0.192 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0331b2 on white: 10.07:1
AA ✓ pass · AA-large · AAA
Aa
#0331b2 on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004AB6
deuteranopia · #003AB0
tritanopia · #00576E

Color scale — 50 to 950

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

#F1F5FD
#E4EAFC
#C1D0FB
#91ADFD
#5984FC
#225BFB
#0442F1
#0337C9
#0331b2
#072374
#041648
Base = 800Lightest = 50 · #F1F5FDDarkest = 950 · #041648
:root {
  --brand-50: #F1F5FD;
  --brand-100: #E4EAFC;
  --brand-200: #C1D0FB;
  --brand-300: #91ADFD;
  --brand-400: #5984FC;
  --brand-500: #225BFB;
  --brand-600: #0442F1;
  --brand-700: #0337C9;
  --brand-800: #0331b2;
  --brand-900: #072374;
  --brand-950: #041648;
  --brand: #0331b2;
  --brand-ink: #ffffff;
}

Colors that work with #0331b2

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#C0CCED
Hairlines and dividers
Muted text#4B609B
Captions on the surface
Accent#B55800
Second voice, not a rival
Dark variant#02237D
Hover, pressed, headers
Light variant#E6ECFF
Selected rows, tints
Dark surface#141824
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 #0331b2

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#B28403
Analogous left#0389B2
Analogous right#2C03B2
Split-complement 1#B22C03
Split-complement 2#89B203
Triadic 1#B20331
Triadic 2#31B203
Tetradic#B20389

RGB percentages

Red1.2%
Green19.2%
Blue69.8%

CMYK percentages

Cyan98.3%
Magenta72.5%
Yellow0.0%
Key (black)30.2%

Color previews

#0331b2 text on a black background

contrast 2.09:1

Card sample

#0331b2 text on a white background

contrast 10.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 49, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 49, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0331b2;
background: linear-gradient(135deg, #0331b2, #4A03B2);

Monochromatic scale

Palettes built from #0331b2

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.

#0331b2 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.

#0331b2, answered

What color is #0331b2?

#0331b2 is a dark electric blue, closest to Medium Blue (ΔE2000 7.7). It sits at 224° on the hue wheel with 97% saturation and 36% lightness, which reads as cool.

What is the RGB value of #0331b2?

rgb(3, 49, 178) — 3 red, 49 green and 178 blue out of 255, or 1.2% / 19.2% / 69.8% by channel.

Is #0331b2 a light or a dark color?

It is a dark color. Relative luminance is 0.0543 and perceived brightness is 28%, so white text on it reaches 10.07:1.

Should I use black or white text on #0331b2?

White. It scores 10.07:1 against #0331b2, versus 2.09:1 for black — AAA at any size.

What is the complementary color of #0331b2?

#B28403 sits directly opposite on the wheel. Softer options are the split-complements #B22C03 and #89B203, which give the same contrast with far less vibration.

What colors go well with #0331b2?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #B55800 as an accent and #02237D for hover and pressed states. For a palette, the analogous pair #0389B2 and #2C03B2 stays calm, while #B28403 is the loudest partner.

What is #0331b2 in CMYK for printing?

cmyk(98%, 73%, 0%, 30%). 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 #0331b2 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1503B2; nudged cooler, #0144B4.

Work with #0331b2 in the Color Lab