Skip to content

#024f89

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

RGB
2, 79, 137
HSL
206°, 97%, 27%
CMYK
99, 42, 0, 46
Luminance
0.0741

At a glance

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

Hex
#024f89
Hue
206°
blue
Saturation
97%
electric
Lightness
27%
dark
Brightness
54%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0741
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.46:1
Closest name
Dark Slate Blue
ΔE2000 14.3
Where it sits
Hue206° of 360°
Saturation97%
Lightness27%
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#024f89
RGBrgb(2, 79, 137)
HSLhsl(206, 97%, 27%)
CMYKcmyk(99%, 42%, 0%, 46%)
LABlab(32.7 2.9 -38.0)
LCHlch(32.7 38.1 274.3)
OKLCHoklch(0.420 0.116 249.5)
Decimal151433
Display P3color(display-p3 0.008 0.310 0.537)

Copy-ready code

/* CSS */
color: #024f89;
background-color: #024f89;
/* Tailwind (arbitrary) */
class="text-[#024f89] bg-[#024f89]"
/* SCSS */
$brand: #024f89;
/* SwiftUI */
Color(red: 0.008, green: 0.310, blue: 0.537)
/* Android */
Color.parseColor("#024f89")
/* Flutter */
Color(0xFF024F89)
/* Python / OpenCV (BGR) */
(137, 79, 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 #024f89 · 8.46:1
Use #ffffffAAA at every size.
Aa
White text · 8.46: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: #024f89 as text scores 8.46:1 on white and 2.48:1 on black.

Accessibility — WCAG contrast

Aa
#024f89 on white: 8.46:1
AA ✓ pass · AA-large · AAA
Aa
#024f89 on black: 2.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #31538B
deuteranopia · #1A4888
tritanopia · #005D65

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #024f89 is pinned to step 900; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1F8FD
#E4F1FC
#C1E2FB
#90CFFD
#59B6FD
#229EFC
#048BF1
#0374C9
#025DA1
#024f89
#042B48
Base = 900Lightest = 50 · #F1F8FDDarkest = 950 · #042B48
:root {
  --brand-50: #F1F8FD;
  --brand-100: #E4F1FC;
  --brand-200: #C1E2FB;
  --brand-300: #90CFFD;
  --brand-400: #59B6FD;
  --brand-500: #229EFC;
  --brand-600: #048BF1;
  --brand-700: #0374C9;
  --brand-800: #025DA1;
  --brand-900: #024f89;
  --brand-950: #042B48;
  --brand: #024f89;
  --brand-ink: #ffffff;
}

Colors that work with #024f89

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#F4F8FA
Tinted page background
Border#C0D9ED
Hairlines and dividers
Muted text#4B789B
Captions on the surface
Accent#8B1900
Second voice, not a rival
Dark variant#02487E
Hover, pressed, headers
Light variant#E6F4FF
Selected rows, tints
Dark surface#141D24
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 #024f89

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#893C02
Analogous left#028980
Analogous right#020B89
Split-complement 1#89020B
Split-complement 2#898002
Triadic 1#89024F
Triadic 2#4F8902
Tetradic#800289

RGB percentages

Red0.8%
Green31.0%
Blue53.7%

CMYK percentages

Cyan98.5%
Magenta42.3%
Yellow0.0%
Key (black)46.3%

Color previews

#024f89 text on a black background

contrast 2.48:1

Card sample

#024f89 text on a white background

contrast 8.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #024f89;
Background color
Panel with #024f89 background
background-color: #024f89;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #024f89;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(2, 79, 137, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 79, 137, 0.45);
Border & gradient
Gradient panel
border: 3px solid #024f89;
background: linear-gradient(135deg, #024f89, #0F0289);

Monochromatic scale

Palettes built from #024f89

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.

#024f89 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.

#024f89, answered

What color is #024f89?

#024f89 is a dark electric blue, closest to Dark Slate Blue (ΔE2000 14.3). It sits at 206° on the hue wheel with 97% saturation and 27% lightness, which reads as cool.

What is the RGB value of #024f89?

rgb(2, 79, 137) — 2 red, 79 green and 137 blue out of 255, or 0.8% / 31% / 53.7% by channel.

Is #024f89 a light or a dark color?

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

Should I use black or white text on #024f89?

White. It scores 8.46:1 against #024f89, versus 2.48:1 for black — AAA at any size.

What is the complementary color of #024f89?

#893C02 sits directly opposite on the wheel. Softer options are the split-complements #89020B and #898002, which give the same contrast with far less vibration.

What colors go well with #024f89?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B789B for secondary text, #8B1900 as an accent and #02487E for hover and pressed states. For a palette, the analogous pair #028980 and #020B89 stays calm, while #893C02 is the loudest partner.

What is #024f89 in CMYK for printing?

cmyk(99%, 42%, 0%, 46%). 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 #024f89 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 #021E89; nudged cooler, #013A71.

Work with #024f89 in the Color Lab