Skip to content

#0862af

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

RGB
8, 98, 175
HSL
208°, 91%, 36%
CMYK
95, 44, 0, 31
Luminance
0.1188

At a glance

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

Hex
#0862af
Hue
208°
blue
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.1188
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.22:1
Closest name
Royal Blue
ΔE2000 9.5
Where it sits
Hue208° of 360°
Saturation91%
Lightness36%
Temperature
Warm ← → Cool99% 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#0862af
RGBrgb(8, 98, 175)
HSLhsl(208, 91%, 36%)
CMYKcmyk(95%, 44%, 0%, 31%)
LABlab(41.0 6.4 -47.5)
LCHlch(41.0 47.9 277.7)
OKLCHoklch(0.493 0.143 252.0)
Decimal549551
Display P3color(display-p3 0.031 0.384 0.686)

Copy-ready code

/* CSS */
color: #0862af;
background-color: #0862af;
/* Tailwind (arbitrary) */
class="text-[#0862af] bg-[#0862af]"
/* SCSS */
$brand: #0862af;
/* SwiftUI */
Color(red: 0.031, green: 0.384, blue: 0.686)
/* Android */
Color.parseColor("#0862af")
/* Flutter */
Color(0xFF0862AF)
/* Python / OpenCV (BGR) */
(175, 98, 8)

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 #0862af · 6.22:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.22:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.38:1
AA fail · AA large pass · AAA fail
Reading the other direction: #0862af as text scores 6.22:1 on white and 3.38:1 on black.

Accessibility — WCAG contrast

Aa
#0862af on white: 6.22:1
AA ✓ pass · AA-large · AAA
Aa
#0862af on black: 3.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3968B2
deuteranopia · #165AAD
tritanopia · #007580

Color scale — 50 to 950

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

#F2F8FD
#E4F1FB
#C3E0F9
#94CBFA
#5EB1F8
#2897F5
#0B83EA
#096DC3
#0862af
#0A4171
#062946
Base = 800Lightest = 50 · #F2F8FDDarkest = 950 · #062946
:root {
  --brand-50: #F2F8FD;
  --brand-100: #E4F1FB;
  --brand-200: #C3E0F9;
  --brand-300: #94CBFA;
  --brand-400: #5EB1F8;
  --brand-500: #2897F5;
  --brand-600: #0B83EA;
  --brand-700: #096DC3;
  --brand-800: #0862af;
  --brand-900: #0A4171;
  --brand-950: #062946;
  --brand: #0862af;
  --brand-ink: #ffffff;
}

Colors that work with #0862af

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#F4F8FA
Tinted page background
Border#C0D8ED
Hairlines and dividers
Muted text#4B769B
Captions on the surface
Accent#B32904
Second voice, not a rival
Dark variant#06447A
Hover, pressed, headers
Light variant#E7F3FE
Selected rows, tints
Dark surface#141D24
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 #0862af

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
  • 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#AF5508
Analogous left#08AFA9
Analogous right#080EAF
Split-complement 1#AF080E
Split-complement 2#AFA908
Triadic 1#AF0862
Triadic 2#62AF08
Tetradic#A908AF

RGB percentages

Red3.1%
Green38.4%
Blue68.6%

CMYK percentages

Cyan95.4%
Magenta44.0%
Yellow0.0%
Key (black)31.4%

Color previews

#0862af text on a black background

contrast 3.38:1

Card sample

#0862af text on a white background

contrast 6.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0862af;
Background color
Panel with #0862af background
background-color: #0862af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0862af;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 98, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 98, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0862af;
background: linear-gradient(135deg, #0862af, #1D08AF);

Monochromatic scale

Palettes built from #0862af

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.

#0862af 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.

#0862af, answered

What color is #0862af?

#0862af is a dark electric blue, closest to Royal Blue (ΔE2000 9.5). It sits at 208° on the hue wheel with 91% saturation and 36% lightness, which reads as cool.

What is the RGB value of #0862af?

rgb(8, 98, 175) — 8 red, 98 green and 175 blue out of 255, or 3.1% / 38.4% / 68.6% by channel.

Is #0862af a light or a dark color?

It is a dark color. Relative luminance is 0.1188 and perceived brightness is 38%, so white text on it reaches 6.22:1.

Should I use black or white text on #0862af?

White. It scores 6.22:1 against #0862af, versus 3.38:1 for black — AA at any size.

What is the complementary color of #0862af?

#AF5508 sits directly opposite on the wheel. Softer options are the split-complements #AF080E and #AFA908, which give the same contrast with far less vibration.

What colors go well with #0862af?

For interface work: #F4F8FA as the surface, #C0D8ED for borders, #4B769B for secondary text, #B32904 as an accent and #06447A for hover and pressed states. For a palette, the analogous pair #08AFA9 and #080EAF stays calm, while #AF5508 is the loudest partner.

What is #0862af in CMYK for printing?

cmyk(95%, 44%, 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 #0862af warm or cool?

Cool — it scores 99 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0825AF; nudged cooler, #054F98.

Work with #0862af in the Color Lab