Skip to content

#0841ba

a dark, electric blue · cool · closest name: Dark Slate Blue

RGB
8, 65, 186
HSL
221°, 92%, 38%
CMYK
96, 65, 0, 27
Luminance
0.0738

At a glance

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

Hex
#0841ba
Hue
221°
blue
Saturation
92%
electric
Lightness
38%
dark
Brightness
73%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0738
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.48:1
Closest name
Dark Slate Blue
ΔE2000 9.6
Where it sits
Hue221° of 360°
Saturation92%
Lightness38%
Temperature
Warm ← → Cool94% 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#0841ba
RGBrgb(8, 65, 186)
HSLhsl(221, 92%, 38%)
CMYKcmyk(96%, 65%, 0%, 27%)
LABlab(32.6 32.9 -67.6)
LCHlch(32.6 75.2 295.9)
OKLCHoklch(0.432 0.198 262.7)
Decimal541114
Display P3color(display-p3 0.031 0.255 0.729)

Copy-ready code

/* CSS */
color: #0841ba;
background-color: #0841ba;
/* Tailwind (arbitrary) */
class="text-[#0841ba] bg-[#0841ba]"
/* SCSS */
$brand: #0841ba;
/* SwiftUI */
Color(red: 0.031, green: 0.255, blue: 0.729)
/* Android */
Color.parseColor("#0841ba")
/* Flutter */
Color(0xFF0841BA)
/* Python / OpenCV (BGR) */
(186, 65, 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 #0841ba · 8.48:1
Use #ffffffAAA at every size.
Aa
White text · 8.48:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.48:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0841ba as text scores 8.48:1 on white and 2.48:1 on black.

Accessibility — WCAG contrast

Aa
#0841ba on white: 8.48:1
AA ✓ pass · AA-large · AAA
Aa
#0841ba on black: 2.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055BE
deuteranopia · #0045B8
tritanopia · #006277

Color scale — 50 to 950

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

#F2F5FD
#E4ECFB
#C3D4F9
#93B4FA
#5E8FF8
#286AF6
#0A52EB
#0841ba
#07379D
#0A2B71
#061B47
Base = 700Lightest = 50 · #F2F5FDDarkest = 950 · #061B47
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E4ECFB;
  --brand-200: #C3D4F9;
  --brand-300: #93B4FA;
  --brand-400: #5E8FF8;
  --brand-500: #286AF6;
  --brand-600: #0A52EB;
  --brand-700: #0841ba;
  --brand-800: #07379D;
  --brand-900: #0A2B71;
  --brand-950: #061B47;
  --brand: #0841ba;
  --brand-ink: #ffffff;
}

Colors that work with #0841ba

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#C0CEED
Hairlines and dividers
Muted text#4B649B
Captions on the surface
Accent#BE5404
Second voice, not a rival
Dark variant#052B7A
Hover, pressed, headers
Light variant#E7EEFE
Selected rows, tints
Dark surface#141924
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 #0841ba

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#BA8108
Analogous left#089ABA
Analogous right#2808BA
Split-complement 1#BA2808
Split-complement 2#9ABA08
Triadic 1#BA0841
Triadic 2#41BA08
Tetradic#BA089A

RGB percentages

Red3.1%
Green25.5%
Blue72.9%

CMYK percentages

Cyan95.7%
Magenta65.1%
Yellow0.0%
Key (black)27.1%

Color previews

#0841ba text on a black background

contrast 2.48:1

Card sample

#0841ba text on a white background

contrast 8.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0841ba;
Background color
Panel with #0841ba background
background-color: #0841ba;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0841ba;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(8, 65, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 65, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0841ba;
background: linear-gradient(135deg, #0841ba, #4608BA);

Monochromatic scale

Palettes built from #0841ba

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.

#0841ba 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.

#0841ba, answered

What color is #0841ba?

#0841ba is a dark electric blue, closest to Dark Slate Blue (ΔE2000 9.6). It sits at 221° on the hue wheel with 92% saturation and 38% lightness, which reads as cool.

What is the RGB value of #0841ba?

rgb(8, 65, 186) — 8 red, 65 green and 186 blue out of 255, or 3.1% / 25.5% / 72.9% by channel.

Is #0841ba a light or a dark color?

It is a dark color. Relative luminance is 0.0738 and perceived brightness is 31%, so white text on it reaches 8.48:1.

Should I use black or white text on #0841ba?

White. It scores 8.48:1 against #0841ba, versus 2.48:1 for black — AAA at any size.

What is the complementary color of #0841ba?

#BA8108 sits directly opposite on the wheel. Softer options are the split-complements #BA2808 and #9ABA08, which give the same contrast with far less vibration.

What colors go well with #0841ba?

For interface work: #F4F6FA as the surface, #C0CEED for borders, #4B649B for secondary text, #BE5404 as an accent and #052B7A for hover and pressed states. For a palette, the analogous pair #089ABA and #2808BA stays calm, while #BA8108 is the loudest partner.

What is #0841ba in CMYK for printing?

cmyk(96%, 65%, 0%, 27%). 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 #0841ba warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1008BA; nudged cooler, #0544A3.

Work with #0841ba in the Color Lab