Skip to content

#0940c4

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

RGB
9, 64, 196
HSL
222°, 91%, 40%
CMYK
95, 67, 0, 23
Luminance
0.0771

At a glance

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

Hex
#0940c4
Hue
222°
blue
Saturation
91%
electric
Lightness
40%
dark
Brightness
77%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0771
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.26:1
Closest name
Dark Slate Blue
ΔE2000 10.1
Where it sits
Hue222° of 360°
Saturation91%
Lightness40%
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#0940c4
RGBrgb(9, 64, 196)
HSLhsl(222, 91%, 40%)
CMYKcmyk(95%, 67%, 0%, 23%)
LABlab(33.4 37.4 -72.3)
LCHlch(33.4 81.4 297.3)
OKLCHoklch(0.440 0.211 263.3)
Decimal606404
Display P3color(display-p3 0.035 0.251 0.769)

Copy-ready code

/* CSS */
color: #0940c4;
background-color: #0940c4;
/* Tailwind (arbitrary) */
class="text-[#0940c4] bg-[#0940c4]"
/* SCSS */
$brand: #0940c4;
/* SwiftUI */
Color(red: 0.035, green: 0.251, blue: 0.769)
/* Android */
Color.parseColor("#0940c4")
/* Flutter */
Color(0xFF0940C4)
/* Python / OpenCV (BGR) */
(196, 64, 9)

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 #0940c4 · 8.26:1
Use #ffffffAAA at every size.
Aa
White text · 8.26:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.54:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0940c4 as text scores 8.26:1 on white and 2.54:1 on black.

Accessibility — WCAG contrast

Aa
#0940c4 on white: 8.26:1
AA ✓ pass · AA-large · AAA
Aa
#0940c4 on black: 2.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057C8
deuteranopia · #0046C2
tritanopia · #00657C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0940c4 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
#E5EBFB
#C3D3F9
#94B2FA
#5E8BF8
#2865F5
#0B4CEA
#0940c4
#07339C
#0A2871
#061946
Base = 700Lightest = 50 · #F2F5FDDarkest = 950 · #061946
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFB;
  --brand-200: #C3D3F9;
  --brand-300: #94B2FA;
  --brand-400: #5E8BF8;
  --brand-500: #2865F5;
  --brand-600: #0B4CEA;
  --brand-700: #0940c4;
  --brand-800: #07339C;
  --brand-900: #0A2871;
  --brand-950: #061946;
  --brand: #0940c4;
  --brand-ink: #ffffff;
}

Colors that work with #0940c4

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#C85E05
Second voice, not a rival
Dark variant#06287A
Hover, pressed, headers
Light variant#E7EDFE
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 #0940c4

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#C48D09
Analogous left#099DC4
Analogous right#3009C4
Split-complement 1#C43009
Split-complement 2#9DC409
Triadic 1#C40940
Triadic 2#40C409
Tetradic#C4099D

RGB percentages

Red3.5%
Green25.1%
Blue76.9%

CMYK percentages

Cyan95.4%
Magenta67.3%
Yellow0.0%
Key (black)23.1%

Color previews

#0940c4 text on a black background

contrast 2.54:1

Card sample

#0940c4 text on a white background

contrast 8.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0940c4;
Background color
Panel with #0940c4 background
background-color: #0940c4;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0940c4;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(9, 64, 196, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(9, 64, 196, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0940c4;
background: linear-gradient(135deg, #0940c4, #4F09C4);

Monochromatic scale

Palettes built from #0940c4

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.

#0940c4 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.

#0940c4, answered

What color is #0940c4?

#0940c4 is a dark electric blue, closest to Dark Slate Blue (ΔE2000 10.1). It sits at 222° on the hue wheel with 91% saturation and 40% lightness, which reads as cool.

What is the RGB value of #0940c4?

rgb(9, 64, 196) — 9 red, 64 green and 196 blue out of 255, or 3.5% / 25.1% / 76.9% by channel.

Is #0940c4 a light or a dark color?

It is a dark color. Relative luminance is 0.0771 and perceived brightness is 32%, so white text on it reaches 8.26:1.

Should I use black or white text on #0940c4?

White. It scores 8.26:1 against #0940c4, versus 2.54:1 for black — AAA at any size.

What is the complementary color of #0940c4?

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

What colors go well with #0940c4?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B629B for secondary text, #C85E05 as an accent and #06287A for hover and pressed states. For a palette, the analogous pair #099DC4 and #3009C4 stays calm, while #C48D09 is the loudest partner.

What is #0940c4 in CMYK for printing?

cmyk(95%, 67%, 0%, 23%). 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 #0940c4 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 #1709C4; nudged cooler, #0647AD.

Work with #0940c4 in the Color Lab