Skip to content

#062db6

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

RGB
6, 45, 182
HSL
227°, 94%, 37%
CMYK
97, 75, 0, 29
Luminance
0.0529

At a glance

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

Hex
#062db6
Hue
227°
blue
Saturation
94%
electric
Lightness
37%
dark
Brightness
71%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0529
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.20:1
Closest name
Medium Blue
ΔE2000 6.5
Where it sits
Hue227° of 360°
Saturation94%
Lightness37%
Temperature
Warm ← → Cool91% 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#062db6
RGBrgb(6, 45, 182)
HSLhsl(227, 94%, 37%)
CMYKcmyk(97%, 75%, 0%, 29%)
LABlab(27.6 44.0 -73.6)
LCHlch(27.6 85.8 300.8)
OKLCHoklch(0.393 0.215 264.4)
Decimal404918
Display P3color(display-p3 0.024 0.176 0.714)

Copy-ready code

/* CSS */
color: #062db6;
background-color: #062db6;
/* Tailwind (arbitrary) */
class="text-[#062db6] bg-[#062db6]"
/* SCSS */
$brand: #062db6;
/* SwiftUI */
Color(red: 0.024, green: 0.176, blue: 0.714)
/* Android */
Color.parseColor("#062db6")
/* Flutter */
Color(0xFF062DB6)
/* Python / OpenCV (BGR) */
(182, 45, 6)

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 #062db6 · 10.20:1
Use #ffffffAAA at every size.
Aa
White text · 10.20:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.06:1
AA fail · AA large fail · AAA fail
Reading the other direction: #062db6 as text scores 10.20:1 on white and 2.06:1 on black.

Accessibility — WCAG contrast

Aa
#062db6 on white: 10.20:1
AA ✓ pass · AA-large · AAA
Aa
#062db6 on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0049BA
deuteranopia · #0039B4
tritanopia · #00566F

Color scale — 50 to 950

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

#F2F4FD
#E4E9FB
#C2CEFA
#92AAFB
#5C7FFA
#2654F8
#083BED
#062db6
#05279E
#082072
#051447
Base = 700Lightest = 50 · #F2F4FDDarkest = 950 · #051447
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E4E9FB;
  --brand-200: #C2CEFA;
  --brand-300: #92AAFB;
  --brand-400: #5C7FFA;
  --brand-500: #2654F8;
  --brand-600: #083BED;
  --brand-700: #062db6;
  --brand-800: #05279E;
  --brand-900: #082072;
  --brand-950: #051447;
  --brand: #062db6;
  --brand-ink: #ffffff;
}

Colors that work with #062db6

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#C0CAED
Hairlines and dividers
Muted text#4B5C9B
Captions on the surface
Accent#BA6302
Second voice, not a rival
Dark variant#041F7B
Hover, pressed, headers
Light variant#E6ECFE
Selected rows, tints
Dark surface#141724
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 #062db6

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#B68F06
Analogous left#0685B6
Analogous right#3706B6
Split-complement 1#B63706
Split-complement 2#85B606
Triadic 1#B6062D
Triadic 2#2DB606
Tetradic#B60685

RGB percentages

Red2.4%
Green17.6%
Blue71.4%

CMYK percentages

Cyan96.7%
Magenta75.3%
Yellow0.0%
Key (black)28.6%

Color previews

#062db6 text on a black background

contrast 2.06:1

Card sample

#062db6 text on a white background

contrast 10.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #062db6;
Background color
Panel with #062db6 background
background-color: #062db6;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #062db6;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(6, 45, 182, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 45, 182, 0.45);
Border & gradient
Gradient panel
border: 3px solid #062db6;
background: linear-gradient(135deg, #062db6, #5406B6);

Monochromatic scale

Palettes built from #062db6

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.

#062db6 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.

#062db6, answered

What color is #062db6?

#062db6 is a dark electric blue, closest to Medium Blue (ΔE2000 6.5). It sits at 227° on the hue wheel with 94% saturation and 37% lightness, which reads as cool.

What is the RGB value of #062db6?

rgb(6, 45, 182) — 6 red, 45 green and 182 blue out of 255, or 2.4% / 17.6% / 71.4% by channel.

Is #062db6 a light or a dark color?

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

Should I use black or white text on #062db6?

White. It scores 10.20:1 against #062db6, versus 2.06:1 for black — AAA at any size.

What is the complementary color of #062db6?

#B68F06 sits directly opposite on the wheel. Softer options are the split-complements #B63706 and #85B606, which give the same contrast with far less vibration.

What colors go well with #062db6?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5C9B for secondary text, #BA6302 as an accent and #041F7B for hover and pressed states. For a palette, the analogous pair #0685B6 and #3706B6 stays calm, while #B68F06 is the loudest partner.

What is #062db6 in CMYK for printing?

cmyk(97%, 75%, 0%, 29%). 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 #062db6 warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2006B6; nudged cooler, #0443B8.

Work with #062db6 in the Color Lab