Skip to content

#0827af

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

RGB
8, 39, 175
HSL
229°, 91%, 36%
CMYK
95, 78, 0, 31
Luminance
0.0460

At a glance

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

Hex
#0827af
Hue
229°
blue
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0460
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.94:1
Closest name
Medium Blue
ΔE2000 5.8
Where it sits
Hue229° of 360°
Saturation91%
Lightness36%
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#0827af
RGBrgb(8, 39, 175)
HSLhsl(229, 91%, 36%)
CMYKcmyk(95%, 78%, 0%, 31%)
LABlab(25.6 45.0 -72.8)
LCHlch(25.6 85.6 301.7)
OKLCHoklch(0.377 0.212 264.9)
Decimal534447
Display P3color(display-p3 0.031 0.153 0.686)

Copy-ready code

/* CSS */
color: #0827af;
background-color: #0827af;
/* Tailwind (arbitrary) */
class="text-[#0827af] bg-[#0827af]"
/* SCSS */
$brand: #0827af;
/* SwiftUI */
Color(red: 0.031, green: 0.153, blue: 0.686)
/* Android */
Color.parseColor("#0827af")
/* Flutter */
Color(0xFF0827AF)
/* Python / OpenCV (BGR) */
(175, 39, 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 #0827af · 10.94:1
Use #ffffffAAA at every size.
Aa
White text · 10.94:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.92:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0827af as text scores 10.94:1 on white and 1.92:1 on black.

Accessibility — WCAG contrast

Aa
#0827af on white: 10.94:1
AA ✓ pass · AA-large · AAA
Aa
#0827af on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0045B3
deuteranopia · #0034AD
tritanopia · #00516A

Color scale — 50 to 950

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

#F2F4FD
#E4E9FB
#C3CDF9
#94A7FA
#5E7AF8
#284EF5
#0B34EA
#092BC3
#0827af
#0A1D71
#061246
Base = 800Lightest = 50 · #F2F4FDDarkest = 950 · #061246
:root {
  --brand-50: #F2F4FD;
  --brand-100: #E4E9FB;
  --brand-200: #C3CDF9;
  --brand-300: #94A7FA;
  --brand-400: #5E7AF8;
  --brand-500: #284EF5;
  --brand-600: #0B34EA;
  --brand-700: #092BC3;
  --brand-800: #0827af;
  --brand-900: #0A1D71;
  --brand-950: #061246;
  --brand: #0827af;
  --brand-ink: #ffffff;
}

Colors that work with #0827af

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#4B599B
Captions on the surface
Accent#B36704
Second voice, not a rival
Dark variant#061B7A
Hover, pressed, headers
Light variant#E7EBFE
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 #0827af

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#AF9008
Analogous left#087AAF
Analogous right#3D08AF
Split-complement 1#AF3D08
Split-complement 2#7AAF08
Triadic 1#AF0827
Triadic 2#27AF08
Tetradic#AF087A

RGB percentages

Red3.1%
Green15.3%
Blue68.6%

CMYK percentages

Cyan95.4%
Magenta77.7%
Yellow0.0%
Key (black)31.4%

Color previews

#0827af text on a black background

contrast 1.92:1

Card sample

#0827af text on a white background

contrast 10.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0827af

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.

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

#0827af, answered

What color is #0827af?

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

What is the RGB value of #0827af?

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

Is #0827af a light or a dark color?

It is a dark color. Relative luminance is 0.0460 and perceived brightness is 26%, so white text on it reaches 10.94:1.

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

White. It scores 10.94:1 against #0827af, versus 1.92:1 for black — AAA at any size.

What is the complementary color of #0827af?

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

What colors go well with #0827af?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #B36704 as an accent and #061B7A for hover and pressed states. For a palette, the analogous pair #087AAF and #3D08AF stays calm, while #AF9008 is the loudest partner.

What is #0827af in CMYK for printing?

cmyk(95%, 78%, 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 #0827af 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 #2608AF; nudged cooler, #0640B1.

Work with #0827af in the Color Lab