Skip to content

#0902cd

a dark, electric blue · cool · “Medium Blue”

RGB
9, 2, 205
HSL
242°, 98%, 41%
CMYK
96, 99, 0, 20
Luminance
0.0451

At a glance

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

Hex
#0902cd
Hue
242°
blue
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0451
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.04:1
Closest name
Medium Blue
ΔE2000 0.3
Where it sits
Hue242° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool82% 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#0902cd
RGBrgb(9, 2, 205)
HSLhsl(242, 98%, 41%)
CMYKcmyk(96%, 99%, 0%, 20%)
LABlab(25.3 66.8 -91.0)
LCHlch(25.3 112.9 306.3)
OKLCHoklch(0.386 0.264 265.0)
Decimal590541
Display P3color(display-p3 0.035 0.008 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0902cd on white: 11.04:1
AA ✓ pass · AA-large · AAA
Aa
#0902cd on black: 1.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0046D2
deuteranopia · #0030CA
tritanopia · #005577

Color scale — 50 to 950

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

#F2F1FD
#E4E3FC
#C3C1FB
#9490FE
#5E58FD
#2821FD
#0B02F2
#0902cd
#0702A2
#0A0674
#060449
Base = 700Lightest = 50 · #F2F1FDDarkest = 950 · #060449
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E4E3FC;
  --brand-200: #C3C1FB;
  --brand-300: #9490FE;
  --brand-400: #5E58FD;
  --brand-500: #2821FD;
  --brand-600: #0B02F2;
  --brand-700: #0902cd;
  --brand-800: #0702A2;
  --brand-900: #0A0674;
  --brand-950: #060449;
  --brand: #0902cd;
  --brand-ink: #ffffff;
}

Colors that work with #0902cd

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#F5F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4D4B9B
Captions on the surface
Accent#CCA000
Second voice, not a rival
Dark variant#06017E
Hover, pressed, headers
Light variant#E7E6FF
Selected rows, tints
Dark surface#141424
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 #0902cd

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#C6CD02
Analogous left#0260CD
Analogous right#6F02CD
Split-complement 1#CD6F02
Split-complement 2#60CD02
Triadic 1#CD0902
Triadic 2#02CD09
Tetradic#CD0260

RGB percentages

Red3.5%
Green0.8%
Blue80.4%

CMYK percentages

Cyan95.6%
Magenta99.0%
Yellow0.0%
Key (black)19.6%

Color previews

#0902cd text on a black background

contrast 1.90:1

Card sample

#0902cd text on a white background

contrast 11.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0902cd

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.

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

#0902cd, answered

What color is #0902cd?

#0902cd is a dark electric blue — the CSS keyword Medium Blue. It sits at 242° on the hue wheel with 98% saturation and 41% lightness, which reads as cool.

What is the RGB value of #0902cd?

rgb(9, 2, 205) — 9 red, 2 green and 205 blue out of 255, or 3.5% / 0.8% / 80.4% by channel.

Is #0902cd a light or a dark color?

It is a dark color. Relative luminance is 0.0451 and perceived brightness is 27%, so white text on it reaches 11.04:1.

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

White. It scores 11.04:1 against #0902cd, versus 1.90:1 for black — AAA at any size.

What is the complementary color of #0902cd?

#C6CD02 sits directly opposite on the wheel. Softer options are the split-complements #CD6F02 and #60CD02, which give the same contrast with far less vibration.

What colors go well with #0902cd?

For interface work: #F5F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #CCA000 as an accent and #06017E for hover and pressed states. For a palette, the analogous pair #0260CD and #6F02CD stays calm, while #C6CD02 is the loudest partner.

What is #0902cd in CMYK for printing?

cmyk(96%, 99%, 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 #0902cd warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5402CD; nudged cooler, #002DCF.

Work with #0902cd in the Color Lab