Skip to content

#031dc2

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

RGB
3, 29, 194
HSL
232°, 97%, 39%
CMYK
99, 85, 0, 24
Luminance
0.0479

At a glance

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

Hex
#031dc2
Hue
232°
blue
Saturation
97%
electric
Lightness
39%
dark
Brightness
76%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0479
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.72:1
Closest name
Medium Blue
ΔE2000 2.9
Where it sits
Hue232° of 360°
Saturation97%
Lightness39%
Temperature
Warm ← → Cool88% 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#031dc2
RGBrgb(3, 29, 194)
HSLhsl(232, 97%, 39%)
CMYKcmyk(99%, 85%, 0%, 24%)
LABlab(26.1 56.1 -83.1)
LCHlch(26.1 100.3 304.0)
OKLCHoklch(0.387 0.242 264.5)
Decimal204226
Display P3color(display-p3 0.012 0.114 0.761)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#031dc2 on white: 10.72:1
AA ✓ pass · AA-large · AAA
Aa
#031dc2 on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0047C6
deuteranopia · #0034BF
tritanopia · #005573

Color scale — 50 to 950

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

#F1F3FD
#E4E7FC
#C1C9FB
#909FFD
#5970FC
#2240FC
#0424F1
#031dc2
#0218A1
#071674
#040D48
Base = 700Lightest = 50 · #F1F3FDDarkest = 950 · #040D48
:root {
  --brand-50: #F1F3FD;
  --brand-100: #E4E7FC;
  --brand-200: #C1C9FB;
  --brand-300: #909FFD;
  --brand-400: #5970FC;
  --brand-500: #2240FC;
  --brand-600: #0424F1;
  --brand-700: #031dc2;
  --brand-800: #0218A1;
  --brand-900: #071674;
  --brand-950: #040D48;
  --brand: #031dc2;
  --brand-ink: #ffffff;
}

Colors that work with #031dc2

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#C0C6ED
Hairlines and dividers
Muted text#4B569B
Captions on the surface
Accent#C57900
Second voice, not a rival
Dark variant#02137E
Hover, pressed, headers
Light variant#E6E9FF
Selected rows, tints
Dark surface#141624
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 #031dc2

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#C2A803
Analogous left#037DC2
Analogous right#4803C2
Split-complement 1#C24803
Split-complement 2#7DC203
Triadic 1#C2031D
Triadic 2#1DC203
Tetradic#C2037D

RGB percentages

Red1.2%
Green11.4%
Blue76.1%

CMYK percentages

Cyan98.5%
Magenta85.1%
Yellow0.0%
Key (black)23.9%

Color previews

#031dc2 text on a black background

contrast 1.96:1

Card sample

#031dc2 text on a white background

contrast 10.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(3, 29, 194, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 29, 194, 0.45);
Border & gradient
Gradient panel
border: 3px solid #031dc2;
background: linear-gradient(135deg, #031dc2, #6803C2);

Monochromatic scale

Palettes built from #031dc2

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.

#031dc2 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.

#031dc2, answered

What color is #031dc2?

#031dc2 is a dark electric blue, closest to Medium Blue (ΔE2000 2.9). It sits at 232° on the hue wheel with 97% saturation and 39% lightness, which reads as cool.

What is the RGB value of #031dc2?

rgb(3, 29, 194) — 3 red, 29 green and 194 blue out of 255, or 1.2% / 11.4% / 76.1% by channel.

Is #031dc2 a light or a dark color?

It is a dark color. Relative luminance is 0.0479 and perceived brightness is 27%, so white text on it reaches 10.72:1.

Should I use black or white text on #031dc2?

White. It scores 10.72:1 against #031dc2, versus 1.96:1 for black — AAA at any size.

What is the complementary color of #031dc2?

#C2A803 sits directly opposite on the wheel. Softer options are the split-complements #C24803 and #7DC203, which give the same contrast with far less vibration.

What colors go well with #031dc2?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B569B for secondary text, #C57900 as an accent and #02137E for hover and pressed states. For a palette, the analogous pair #037DC2 and #4803C2 stays calm, while #C2A803 is the loudest partner.

What is #031dc2 in CMYK for printing?

cmyk(99%, 85%, 0%, 24%). 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 #031dc2 warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2F03C2; nudged cooler, #013CC4.

Work with #031dc2 in the Color Lab