Skip to content

#024f7c

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

RGB
2, 79, 124
HSL
202°, 97%, 25%
CMYK
98, 36, 0, 51
Luminance
0.0706

At a glance

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

Hex
#024f7c
Hue
202°
blue
Saturation
97%
electric
Lightness
25%
deep
Brightness
49%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0706
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.71:1
Closest name
Dark Slate Blue
ΔE2000 15.4
Where it sits
Hue202° of 360°
Saturation97%
Lightness25%
Temperature
Warm ← → Cool97% 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#024f7c
RGBrgb(2, 79, 124)
HSLhsl(202, 97%, 25%)
CMYKcmyk(98%, 36%, 0%, 51%)
LABlab(31.9 -2.6 -31.2)
LCHlch(31.9 31.3 265.2)
OKLCHoklch(0.411 0.099 243.5)
Decimal151420
Display P3color(display-p3 0.008 0.310 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024f7c on white: 8.71:1
AA ✓ pass · AA-large · AAA
Aa
#024f7c on black: 2.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #39517E
deuteranopia · #28477B
tritanopia · #005A5F

Color scale — 50 to 950

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

#F1F9FD
#E4F3FC
#C1E5FB
#91D5FD
#59C0FC
#22ABFB
#049AF1
#0380C9
#0366A1
#024f7c
#042F48
Base = 900Lightest = 50 · #F1F9FDDarkest = 950 · #042F48
:root {
  --brand-50: #F1F9FD;
  --brand-100: #E4F3FC;
  --brand-200: #C1E5FB;
  --brand-300: #91D5FD;
  --brand-400: #59C0FC;
  --brand-500: #22ABFB;
  --brand-600: #049AF1;
  --brand-700: #0380C9;
  --brand-800: #0366A1;
  --brand-900: #024f7c;
  --brand-950: #042F48;
  --brand: #024f7c;
  --brand-ink: #ffffff;
}

Colors that work with #024f7c

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#C0DCED
Hairlines and dividers
Muted text#4B7D9B
Captions on the surface
Accent#7E0F00
Second voice, not a rival
Dark variant#02507D
Hover, pressed, headers
Light variant#E6F6FF
Selected rows, tints
Dark surface#141E24
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 #024f7c

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#7C2F02
Analogous left#027C6C
Analogous right#02127C
Split-complement 1#7C0212
Split-complement 2#7C6C02
Triadic 1#7C024F
Triadic 2#4F7C02
Tetradic#6C027C

RGB percentages

Red0.8%
Green31.0%
Blue48.6%

CMYK percentages

Cyan98.4%
Magenta36.3%
Yellow0.0%
Key (black)51.4%

Color previews

#024f7c text on a black background

contrast 2.41:1

Card sample

#024f7c text on a white background

contrast 8.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024f7c

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.

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

#024f7c, answered

What color is #024f7c?

#024f7c is a deep electric blue, closest to Dark Slate Blue (ΔE2000 15.4). It sits at 202° on the hue wheel with 97% saturation and 25% lightness, which reads as cool.

What is the RGB value of #024f7c?

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

Is #024f7c a light or a dark color?

It is a dark color. Relative luminance is 0.0706 and perceived brightness is 29%, so white text on it reaches 8.71:1.

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

White. It scores 8.71:1 against #024f7c, versus 2.41:1 for black — AAA at any size.

What is the complementary color of #024f7c?

#7C2F02 sits directly opposite on the wheel. Softer options are the split-complements #7C0212 and #7C6C02, which give the same contrast with far less vibration.

What colors go well with #024f7c?

For interface work: #F4F8FA as the surface, #C0DCED for borders, #4B7D9B for secondary text, #7E0F00 as an accent and #02507D for hover and pressed states. For a palette, the analogous pair #027C6C and #02127C stays calm, while #7C2F02 is the loudest partner.

What is #024f7c in CMYK for printing?

cmyk(98%, 36%, 0%, 51%). 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 #024f7c warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #027C7C; nudged cooler, #013664.

Work with #024f7c in the Color Lab