Skip to content

#024f9f

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

RGB
2, 79, 159
HSL
211°, 98%, 32%
CMYK
99, 50, 0, 38
Luminance
0.0811

At a glance

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

Hex
#024f9f
Hue
211°
blue
Saturation
98%
electric
Lightness
32%
dark
Brightness
62%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0811
WCAG relative
Temperature
Cool
100/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.01:1
Closest name
Dark Slate Blue
ΔE2000 12.6
Where it sits
Hue211° of 360°
Saturation98%
Lightness32%
Temperature
Warm ← → Cool100% 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#024f9f
RGBrgb(2, 79, 159)
HSLhsl(211, 98%, 32%)
CMYKcmyk(99%, 50%, 0%, 38%)
LABlab(34.2 12.1 -49.0)
LCHlch(34.2 50.5 283.9)
OKLCHoklch(0.436 0.146 255.7)
Decimal151455
Display P3color(display-p3 0.008 0.310 0.624)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024f9f on white: 8.01:1
AA ✓ pass · AA-large · AAA
Aa
#024f9f on black: 2.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1C57A2
deuteranopia · #004A9D
tritanopia · #00636F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #024f9f 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
#E4EFFC
#C1DDFB
#90C6FE
#59A9FD
#218DFC
#0378F2
#0364C9
#024f9f
#063C74
#042649
Base = 800Lightest = 50 · #F1F7FDDarkest = 950 · #042649
:root {
  --brand-50: #F1F7FD;
  --brand-100: #E4EFFC;
  --brand-200: #C1DDFB;
  --brand-300: #90C6FE;
  --brand-400: #59A9FD;
  --brand-500: #218DFC;
  --brand-600: #0378F2;
  --brand-700: #0364C9;
  --brand-800: #024f9f;
  --brand-900: #063C74;
  --brand-950: #042649;
  --brand: #024f9f;
  --brand-ink: #ffffff;
}

Colors that work with #024f9f

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#C0D6ED
Hairlines and dividers
Muted text#4B729B
Captions on the surface
Accent#A12A00
Second voice, not a rival
Dark variant#023F7E
Hover, pressed, headers
Light variant#E6F2FF
Selected rows, tints
Dark surface#141C24
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 #024f9f

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#9F5202
Analogous left#029E9F
Analogous right#04029F
Split-complement 1#9F0402
Split-complement 2#9E9F02
Triadic 1#9F024F
Triadic 2#4F9F02
Tetradic#9F029E

RGB percentages

Red0.8%
Green31.0%
Blue62.4%

CMYK percentages

Cyan98.7%
Magenta50.3%
Yellow0.0%
Key (black)37.6%

Color previews

#024f9f text on a black background

contrast 2.62:1

Card sample

#024f9f text on a white background

contrast 8.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024f9f

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.

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

#024f9f, answered

What color is #024f9f?

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

What is the RGB value of #024f9f?

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

Is #024f9f a light or a dark color?

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

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

White. It scores 8.01:1 against #024f9f, versus 2.62:1 for black — AAA at any size.

What is the complementary color of #024f9f?

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

What colors go well with #024f9f?

For interface work: #F4F7FA as the surface, #C0D6ED for borders, #4B729B for secondary text, #A12A00 as an accent and #023F7E for hover and pressed states. For a palette, the analogous pair #029E9F and #04029F stays calm, while #9F5202 is the loudest partner.

What is #024f9f in CMYK for printing?

cmyk(99%, 50%, 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 #024f9f warm or cool?

Cool — it scores 100 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #02159F; nudged cooler, #004187.

Work with #024f9f in the Color Lab