Skip to content

#02489f

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

RGB
2, 72, 159
HSL
213°, 98%, 32%
CMYK
99, 55, 0, 38
Luminance
0.0715

At a glance

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

Hex
#02489f
Hue
213°
blue
Saturation
98%
electric
Lightness
32%
dark
Brightness
62%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0715
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.64:1
Closest name
Dark Slate Blue
ΔE2000 10.7
Where it sits
Hue213° of 360°
Saturation98%
Lightness32%
Temperature
Warm ← → Cool98% 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#02489f
RGBrgb(2, 72, 159)
HSLhsl(213, 98%, 32%)
CMYKcmyk(99%, 55%, 0%, 38%)
LABlab(32.1 16.9 -52.3)
LCHlch(32.1 55.0 287.9)
OKLCHoklch(0.420 0.154 258.1)
Decimal149663
Display P3color(display-p3 0.008 0.282 0.624)

Copy-ready code

/* CSS */
color: #02489f;
background-color: #02489f;
/* Tailwind (arbitrary) */
class="text-[#02489f] bg-[#02489f]"
/* SCSS */
$brand: #02489f;
/* SwiftUI */
Color(red: 0.008, green: 0.282, blue: 0.624)
/* Android */
Color.parseColor("#02489f")
/* Flutter */
Color(0xFF02489F)
/* Python / OpenCV (BGR) */
(159, 72, 2)

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

Accessibility — WCAG contrast

Aa
#02489f on white: 8.64:1
AA ✓ pass · AA-large · AAA
Aa
#02489f on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052A2
deuteranopia · #00459D
tritanopia · #005E6C

Color scale — 50 to 950

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

#F1F7FD
#E4EEFC
#C1DBFB
#90C1FE
#59A2FD
#2183FC
#036EF2
#035BC9
#02489f
#063774
#042349
Base = 800Lightest = 50 · #F1F7FDDarkest = 950 · #042349
:root {
  --brand-50: #F1F7FD;
  --brand-100: #E4EEFC;
  --brand-200: #C1DBFB;
  --brand-300: #90C1FE;
  --brand-400: #59A2FD;
  --brand-500: #2183FC;
  --brand-600: #036EF2;
  --brand-700: #035BC9;
  --brand-800: #02489f;
  --brand-900: #063774;
  --brand-950: #042349;
  --brand: #02489f;
  --brand-ink: #ffffff;
}

Colors that work with #02489f

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#F4F7FA
Tinted page background
Border#C0D4ED
Hairlines and dividers
Muted text#4B6E9B
Captions on the surface
Accent#A13100
Second voice, not a rival
Dark variant#02397E
Hover, pressed, headers
Light variant#E6F1FF
Selected rows, tints
Dark surface#141B24
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 #02489f

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#9F5902
Analogous left#02979F
Analogous right#0A029F
Split-complement 1#9F0A02
Split-complement 2#979F02
Triadic 1#9F0248
Triadic 2#489F02
Tetradic#9F0297

RGB percentages

Red0.8%
Green28.2%
Blue62.4%

CMYK percentages

Cyan98.7%
Magenta54.7%
Yellow0.0%
Key (black)37.6%

Color previews

#02489f text on a black background

contrast 2.43:1

Card sample

#02489f text on a white background

contrast 8.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #02489f;
Background color
Panel with #02489f background
background-color: #02489f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #02489f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(2, 72, 159, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 72, 159, 0.45);
Border & gradient
Gradient panel
border: 3px solid #02489f;
background: linear-gradient(135deg, #02489f, #25029F);

Monochromatic scale

Palettes built from #02489f

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.

#02489f 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.

#02489f, answered

What color is #02489f?

#02489f is a dark electric blue, closest to Dark Slate Blue (ΔE2000 10.7). It sits at 213° on the hue wheel with 98% saturation and 32% lightness, which reads as cool.

What is the RGB value of #02489f?

rgb(2, 72, 159) — 2 red, 72 green and 159 blue out of 255, or 0.8% / 28.2% / 62.4% by channel.

Is #02489f a light or a dark color?

It is a dark color. Relative luminance is 0.0715 and perceived brightness is 30%, so white text on it reaches 8.64:1.

Should I use black or white text on #02489f?

White. It scores 8.64:1 against #02489f, versus 2.43:1 for black — AAA at any size.

What is the complementary color of #02489f?

#9F5902 sits directly opposite on the wheel. Softer options are the split-complements #9F0A02 and #979F02, which give the same contrast with far less vibration.

What colors go well with #02489f?

For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B6E9B for secondary text, #A13100 as an accent and #02397E for hover and pressed states. For a palette, the analogous pair #02979F and #0A029F stays calm, while #9F5902 is the loudest partner.

What is #02489f in CMYK for printing?

cmyk(99%, 55%, 0%, 38%). 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 #02489f warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #020F9F; nudged cooler, #003E87.

Work with #02489f in the Color Lab