Skip to content

#0841cd

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

RGB
8, 65, 205
HSL
223°, 93%, 42%
CMYK
96, 68, 0, 20
Luminance
0.0824

At a glance

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

Hex
#0841cd
Hue
223°
blue
Saturation
93%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0824
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.93:1
Closest name
Blue
ΔE2000 9.9
Where it sits
Hue223° of 360°
Saturation93%
Lightness42%
Temperature
Warm ← → Cool93% 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#0841cd
RGBrgb(8, 65, 205)
HSLhsl(223, 93%, 42%)
CMYKcmyk(96%, 68%, 0%, 20%)
LABlab(34.5 40.1 -75.7)
LCHlch(34.5 85.7 297.9)
OKLCHoklch(0.451 0.221 263.4)
Decimal541133
Display P3color(display-p3 0.031 0.255 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0841cd on white: 7.93:1
AA ✓ pass · AA-large · AAA
Aa
#0841cd on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AD1
deuteranopia · #0048CA
tritanopia · #006882

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0841cd 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
#E4EBFB
#C3D2F9
#93B1FB
#5D8AF9
#2763F7
#094BEC
#0841cd
#06329D
#092771
#061947
Base = 700Lightest = 50 · #F2F5FDDarkest = 950 · #061947
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E4EBFB;
  --brand-200: #C3D2F9;
  --brand-300: #93B1FB;
  --brand-400: #5D8AF9;
  --brand-500: #2763F7;
  --brand-600: #094BEC;
  --brand-700: #0841cd;
  --brand-800: #06329D;
  --brand-900: #092771;
  --brand-950: #061947;
  --brand: #0841cd;
  --brand-ink: #ffffff;
}

Colors that work with #0841cd

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#C0CDED
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#D16204
Second voice, not a rival
Dark variant#05277B
Hover, pressed, headers
Light variant#E6EDFE
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 #0841cd

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#CD9408
Analogous left#08A4CD
Analogous right#3108CD
Split-complement 1#CD3108
Split-complement 2#A4CD08
Triadic 1#CD0841
Triadic 2#41CD08
Tetradic#CD08A4

RGB percentages

Red3.1%
Green25.5%
Blue80.4%

CMYK percentages

Cyan96.1%
Magenta68.3%
Yellow0.0%
Key (black)19.6%

Color previews

#0841cd text on a black background

contrast 2.65:1

Card sample

#0841cd text on a white background

contrast 7.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0841cd

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.

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

#0841cd, answered

What color is #0841cd?

#0841cd is a dark electric blue, closest to Blue (ΔE2000 9.9). It sits at 223° on the hue wheel with 93% saturation and 42% lightness, which reads as cool.

What is the RGB value of #0841cd?

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

Is #0841cd a light or a dark color?

It is a dark color. Relative luminance is 0.0824 and perceived brightness is 33%, so white text on it reaches 7.93:1.

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

White. It scores 7.93:1 against #0841cd, versus 2.65:1 for black — AAA at any size.

What is the complementary color of #0841cd?

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

What colors go well with #0841cd?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #D16204 as an accent and #05277B for hover and pressed states. For a palette, the analogous pair #08A4CD and #3108CD stays calm, while #CD9408 is the loudest partner.

What is #0841cd in CMYK for printing?

cmyk(96%, 68%, 0%, 20%). 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 #0841cd warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1708CD; nudged cooler, #0549B7.

Work with #0841cd in the Color Lab