Skip to content

#024c7f

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

RGB
2, 76, 127
HSL
205°, 97%, 25%
CMYK
98, 40, 0, 50
Luminance
0.0671

At a glance

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

Hex
#024c7f
Hue
205°
blue
Saturation
97%
electric
Lightness
25%
dark
Brightness
50%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0671
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.96:1
Closest name
Dark Slate Blue
ΔE2000 14.3
Where it sits
Hue205° of 360°
Saturation97%
Lightness25%
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#024c7f
RGBrgb(2, 76, 127)
HSLhsl(205, 97%, 25%)
CMYKcmyk(98%, 40%, 0%, 50%)
LABlab(31.1 0.6 -34.3)
LCHlch(31.1 34.3 271.0)
OKLCHoklch(0.406 0.106 247.4)
Decimal150655
Display P3color(display-p3 0.008 0.298 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024c7f on white: 8.96:1
AA ✓ pass · AA-large · AAA
Aa
#024c7f on black: 2.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #334F81
deuteranopia · #1F457E
tritanopia · #00585F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #024c7f 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
#E4F2FC
#C1E3FB
#91D1FD
#59BAFC
#22A3FC
#0490F1
#0378C9
#0360A1
#024c7f
#042D48
Base = 900Lightest = 50 · #F1F8FDDarkest = 950 · #042D48
:root {
  --brand-50: #F1F8FD;
  --brand-100: #E4F2FC;
  --brand-200: #C1E3FB;
  --brand-300: #91D1FD;
  --brand-400: #59BAFC;
  --brand-500: #22A3FC;
  --brand-600: #0490F1;
  --brand-700: #0378C9;
  --brand-800: #0360A1;
  --brand-900: #024c7f;
  --brand-950: #042D48;
  --brand: #024c7f;
  --brand-ink: #ffffff;
}

Colors that work with #024c7f

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#C0DAED
Hairlines and dividers
Muted text#4B7A9B
Captions on the surface
Accent#811400
Second voice, not a rival
Dark variant#024B7E
Hover, pressed, headers
Light variant#E6F5FF
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 #024c7f

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#7F3502
Analogous left#027F74
Analogous right#020D7F
Split-complement 1#7F020D
Split-complement 2#7F7402
Triadic 1#7F024C
Triadic 2#4C7F02
Tetradic#74027F

RGB percentages

Red0.8%
Green29.8%
Blue49.8%

CMYK percentages

Cyan98.4%
Magenta40.2%
Yellow0.0%
Key (black)50.2%

Color previews

#024c7f text on a black background

contrast 2.34:1

Card sample

#024c7f text on a white background

contrast 8.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024c7f

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.

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

#024c7f, answered

What color is #024c7f?

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

What is the RGB value of #024c7f?

rgb(2, 76, 127) — 2 red, 76 green and 127 blue out of 255, or 0.8% / 29.8% / 49.8% by channel.

Is #024c7f a light or a dark color?

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

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

White. It scores 8.96:1 against #024c7f, versus 2.34:1 for black — AAA at any size.

What is the complementary color of #024c7f?

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

What colors go well with #024c7f?

For interface work: #F4F8FA as the surface, #C0DAED for borders, #4B7A9B for secondary text, #811400 as an accent and #024B7E for hover and pressed states. For a palette, the analogous pair #027F74 and #020D7F stays calm, while #7F3502 is the loudest partner.

What is #024c7f in CMYK for printing?

cmyk(98%, 40%, 0%, 50%). 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 #024c7f 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 #027A7F; nudged cooler, #013667.

Work with #024c7f in the Color Lab