Skip to content

#024fc4

a dark, electric blue · cool · closest name: Royal Blue

RGB
2, 79, 196
HSL
216°, 98%, 39%
CMYK
99, 60, 0, 23
Luminance
0.0959

At a glance

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

Hex
#024fc4
Hue
216°
blue
Saturation
98%
electric
Lightness
39%
dark
Brightness
77%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0959
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.20:1
Closest name
Royal Blue
ΔE2000 9.8
Where it sits
Hue216° of 360°
Saturation98%
Lightness39%
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#024fc4
RGBrgb(2, 79, 196)
HSLhsl(216, 98%, 39%)
CMYKcmyk(99%, 60%, 0%, 23%)
LABlab(37.1 27.3 -66.2)
LCHlch(37.1 71.6 292.4)
OKLCHoklch(0.467 0.194 260.5)
Decimal151492
Display P3color(display-p3 0.008 0.310 0.769)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024fc4 on white: 7.20:1
AA ✓ pass · AA-large · AAA
Aa
#024fc4 on black: 2.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060C8
deuteranopia · #004FC2
tritanopia · #006D82

Color scale — 50 to 950

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

#F1F6FD
#E3EDFC
#C1D8FB
#90BCFE
#589AFD
#2178FD
#0262F2
#024fc4
#0241A2
#063274
#041F49
Base = 700Lightest = 50 · #F1F6FDDarkest = 950 · #041F49
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E3EDFC;
  --brand-200: #C1D8FB;
  --brand-300: #90BCFE;
  --brand-400: #589AFD;
  --brand-500: #2178FD;
  --brand-600: #0262F2;
  --brand-700: #024fc4;
  --brand-800: #0241A2;
  --brand-900: #063274;
  --brand-950: #041F49;
  --brand: #024fc4;
  --brand-ink: #ffffff;
}

Colors that work with #024fc4

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#C0D2ED
Hairlines and dividers
Muted text#4B6A9B
Captions on the surface
Accent#C64600
Second voice, not a rival
Dark variant#01337E
Hover, pressed, headers
Light variant#E6F0FF
Selected rows, tints
Dark surface#141A24
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 #024fc4

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#C47702
Analogous left#02B0C4
Analogous right#1602C4
Split-complement 1#C41602
Split-complement 2#B0C402
Triadic 1#C4024F
Triadic 2#4FC402
Tetradic#C402B0

RGB percentages

Red0.8%
Green31.0%
Blue76.9%

CMYK percentages

Cyan99.0%
Magenta59.7%
Yellow0.0%
Key (black)23.1%

Color previews

#024fc4 text on a black background

contrast 2.92:1

Card sample

#024fc4 text on a white background

contrast 7.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024fc4

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.

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

#024fc4, answered

What color is #024fc4?

#024fc4 is a dark electric blue, closest to Royal Blue (ΔE2000 9.8). It sits at 216° on the hue wheel with 98% saturation and 39% lightness, which reads as cool.

What is the RGB value of #024fc4?

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

Is #024fc4 a light or a dark color?

It is a dark color. Relative luminance is 0.0959 and perceived brightness is 35%, so white text on it reaches 7.20:1.

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

White. It scores 7.20:1 against #024fc4, versus 2.92:1 for black — AAA at any size.

What is the complementary color of #024fc4?

#C47702 sits directly opposite on the wheel. Softer options are the split-complements #C41602 and #B0C402, which give the same contrast with far less vibration.

What colors go well with #024fc4?

For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6A9B for secondary text, #C64600 as an accent and #01337E for hover and pressed states. For a palette, the analogous pair #02B0C4 and #1602C4 stays calm, while #C47702 is the loudest partner.

What is #024fc4 in CMYK for printing?

cmyk(99%, 60%, 0%, 23%). 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 #024fc4 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 #0208C4; nudged cooler, #004BAC.

Work with #024fc4 in the Color Lab