Skip to content

#024f71

a deep, electric cyan · cool · closest name: Dark Slate Gray

RGB
2, 79, 113
HSL
198°, 97%, 23%
CMYK
98, 30, 0, 56
Luminance
0.0680

At a glance

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

Hex
#024f71
Hue
198°
cyan
Saturation
97%
electric
Lightness
23%
deep
Brightness
44%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0680
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
White
8.90:1
Closest name
Dark Slate Gray
ΔE2000 14.4
Where it sits
Hue198° of 360°
Saturation97%
Lightness23%
Temperature
Warm ← → Cool95% 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#024f71
RGBrgb(2, 79, 113)
HSLhsl(198, 97%, 23%)
CMYKcmyk(98%, 30%, 0%, 56%)
LABlab(31.3 -7.2 -25.3)
LCHlch(31.3 26.3 254.1)
OKLCHoklch(0.405 0.086 236.1)
Decimal151409
Display P3color(display-p3 0.008 0.310 0.443)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024f71 on white: 8.90:1
AA ✓ pass · AA-large · AAA
Aa
#024f71 on black: 2.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3E4F73
deuteranopia · #304670
tritanopia · #00585B

Color scale — 50 to 950

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

#F1FAFD
#E4F4FC
#C1E9FB
#91DCFD
#5ACAFC
#23B9FB
#04A8F1
#048CC8
#0370A0
#024f71
#043348
Base = 900Lightest = 50 · #F1FAFDDarkest = 950 · #043348
:root {
  --brand-50: #F1FAFD;
  --brand-100: #E4F4FC;
  --brand-200: #C1E9FB;
  --brand-300: #91DCFD;
  --brand-400: #5ACAFC;
  --brand-500: #23B9FB;
  --brand-600: #04A8F1;
  --brand-700: #048CC8;
  --brand-800: #0370A0;
  --brand-900: #024f71;
  --brand-950: #043348;
  --brand: #024f71;
  --brand-ink: #ffffff;
}

Colors that work with #024f71

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#F4F9FA
Tinted page background
Border#C0DFED
Hairlines and dividers
Muted text#4B829B
Captions on the surface
Accent#730700
Second voice, not a rival
Dark variant#02587D
Hover, pressed, headers
Light variant#E6F7FF
Selected rows, tints
Dark surface#141F24
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 #024f71

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
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#712402
Analogous left#02715B
Analogous right#021771
Split-complement 1#710217
Split-complement 2#715B02
Triadic 1#71024F
Triadic 2#4F7102
Tetradic#5B0271

RGB percentages

Red0.8%
Green31.0%
Blue44.3%

CMYK percentages

Cyan98.2%
Magenta30.1%
Yellow0.0%
Key (black)55.7%

Color previews

#024f71 text on a black background

contrast 2.36:1

Card sample

#024f71 text on a white background

contrast 8.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024f71

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.

#024f71 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#024f71, answered

What color is #024f71?

#024f71 is a deep electric cyan, closest to Dark Slate Gray (ΔE2000 14.4). It sits at 198° on the hue wheel with 97% saturation and 23% lightness, which reads as cool.

What is the RGB value of #024f71?

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

Is #024f71 a light or a dark color?

It is a dark color. Relative luminance is 0.0680 and perceived brightness is 28%, so white text on it reaches 8.90:1.

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

White. It scores 8.90:1 against #024f71, versus 2.36:1 for black — AAA at any size.

What is the complementary color of #024f71?

#712402 sits directly opposite on the wheel. Softer options are the split-complements #710217 and #715B02, which give the same contrast with far less vibration.

What colors go well with #024f71?

For interface work: #F4F9FA as the surface, #C0DFED for borders, #4B829B for secondary text, #730700 as an accent and #02587D for hover and pressed states. For a palette, the analogous pair #02715B and #021771 stays calm, while #712402 is the loudest partner.

What is #024f71 in CMYK for printing?

cmyk(98%, 30%, 0%, 56%). 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 #024f71 warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #02716A; nudged cooler, #013F72.

Work with #024f71 in the Color Lab