Skip to content

#062ccf

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

RGB
6, 44, 207
HSL
229°, 94%, 42%
CMYK
97, 79, 0, 19
Luminance
0.0635

At a glance

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

Hex
#062ccf
Hue
229°
blue
Saturation
94%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0635
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.26:1
Closest name
Medium Blue
ΔE2000 5.7
Where it sits
Hue229° of 360°
Saturation94%
Lightness42%
Temperature
Warm ← → Cool90% 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#062ccf
RGBrgb(6, 44, 207)
HSLhsl(229, 94%, 42%)
CMYKcmyk(97%, 79%, 0%, 19%)
LABlab(30.3 53.0 -83.8)
LCHlch(30.3 99.2 302.3)
OKLCHoklch(0.421 0.244 264.5)
Decimal404687
Display P3color(display-p3 0.024 0.173 0.812)

Copy-ready code

/* CSS */
color: #062ccf;
background-color: #062ccf;
/* Tailwind (arbitrary) */
class="text-[#062ccf] bg-[#062ccf]"
/* SCSS */
$brand: #062ccf;
/* SwiftUI */
Color(red: 0.024, green: 0.173, blue: 0.812)
/* Android */
Color.parseColor("#062ccf")
/* Flutter */
Color(0xFF062CCF)
/* Python / OpenCV (BGR) */
(207, 44, 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 #062ccf · 9.26:1
Use #ffffffAAA at every size.
Aa
White text · 9.26:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.27:1
AA fail · AA large fail · AAA fail
Reading the other direction: #062ccf as text scores 9.26:1 on white and 2.27:1 on black.

Accessibility — WCAG contrast

Aa
#062ccf on white: 9.26:1
AA ✓ pass · AA-large · AAA
Aa
#062ccf on black: 2.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051D4
deuteranopia · #003DCC
tritanopia · #005F7E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #062ccf 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
#E4E8FB
#C2CCFA
#92A6FC
#5B79FA
#254DF9
#0732EE
#062ccf
#05229F
#081C72
#051247
Base = 700Lightest = 50 · #F2F4FDDarkest = 950 · #051247
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E4E8FB;
  --brand-200: #C2CCFA;
  --brand-300: #92A6FC;
  --brand-400: #5B79FA;
  --brand-500: #254DF9;
  --brand-600: #0732EE;
  --brand-700: #062ccf;
  --brand-800: #05229F;
  --brand-900: #081C72;
  --brand-950: #051247;
  --brand: #062ccf;
  --brand-ink: #ffffff;
}

Colors that work with #062ccf

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#C0C8ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#CA7302
Second voice, not a rival
Dark variant#041A7C
Hover, pressed, headers
Light variant#E6EBFE
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 #062ccf

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#CFA906
Analogous left#0690CF
Analogous right#4506CF
Split-complement 1#CF4506
Split-complement 2#90CF06
Triadic 1#CF062C
Triadic 2#2CCF06
Tetradic#CF0690

RGB percentages

Red2.4%
Green17.3%
Blue81.2%

CMYK percentages

Cyan97.1%
Magenta78.7%
Yellow0.0%
Key (black)18.8%

Color previews

#062ccf text on a black background

contrast 2.27:1

Card sample

#062ccf text on a white background

contrast 9.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(6, 44, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(6, 44, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #062ccf;
background: linear-gradient(135deg, #062ccf, #6606CF);

Monochromatic scale

Palettes built from #062ccf

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.

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

#062ccf, answered

What color is #062ccf?

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

What is the RGB value of #062ccf?

rgb(6, 44, 207) — 6 red, 44 green and 207 blue out of 255, or 2.4% / 17.3% / 81.2% by channel.

Is #062ccf a light or a dark color?

It is a dark color. Relative luminance is 0.0635 and perceived brightness is 30%, so white text on it reaches 9.26:1.

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

White. It scores 9.26:1 against #062ccf, versus 2.27:1 for black — AAA at any size.

What is the complementary color of #062ccf?

#CFA906 sits directly opposite on the wheel. Softer options are the split-complements #CF4506 and #90CF06, which give the same contrast with far less vibration.

What colors go well with #062ccf?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B5A9B for secondary text, #CA7302 as an accent and #041A7C for hover and pressed states. For a palette, the analogous pair #0690CF and #4506CF stays calm, while #CFA906 is the loudest partner.

What is #062ccf in CMYK for printing?

cmyk(97%, 79%, 0%, 19%). 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 #062ccf warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2A06CF; nudged cooler, #0447D1.

Work with #062ccf in the Color Lab