Skip to content

#024fea

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

RGB
2, 79, 234
HSL
220°, 98%, 46%
CMYK
99, 66, 0, 8
Luminance
0.1155

At a glance

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

Hex
#024fea
Hue
220°
blue
Saturation
98%
electric
Lightness
46%
balanced
Brightness
92%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1155
WCAG relative
Temperature
Cool
94/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.35:1
Closest name
Royal Blue
ΔE2000 8.3
Where it sits
Hue220° of 360°
Saturation98%
Lightness46%
Temperature
Warm ← → Cool94% 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#024fea
RGBrgb(2, 79, 234)
HSLhsl(220, 98%, 46%)
CMYKcmyk(99%, 66%, 0%, 8%)
LABlab(40.5 41.9 -82.4)
LCHlch(40.5 92.5 296.9)
OKLCHoklch(0.503 0.241 262.6)
Decimal151530
Display P3color(display-p3 0.008 0.310 0.918)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#024fea on white: 6.35:1
AA ✓ pass · AA-large · AAA
Aa
#024fea on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AEF
deuteranopia · #0055E7
tritanopia · #007A96

Color scale — 50 to 950

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

#F1F5FD
#E3ECFC
#C1D4FB
#90B4FE
#588FFE
#216AFD
#024fea
#0244CA
#0137A2
#062B75
#041B49
Base = 600Lightest = 50 · #F1F5FDDarkest = 950 · #041B49
:root {
  --brand-50: #F1F5FD;
  --brand-100: #E3ECFC;
  --brand-200: #C1D4FB;
  --brand-300: #90B4FE;
  --brand-400: #588FFE;
  --brand-500: #216AFD;
  --brand-600: #024fea;
  --brand-700: #0244CA;
  --brand-800: #0137A2;
  --brand-900: #062B75;
  --brand-950: #041B49;
  --brand: #024fea;
  --brand-ink: #ffffff;
}

Colors that work with #024fea

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#F4F6FA
Tinted page background
Border#C0CFED
Hairlines and dividers
Muted text#4B659B
Captions on the surface
Accent#EC6300
Second voice, not a rival
Dark variant#012B7E
Hover, pressed, headers
Light variant#E6EEFF
Selected rows, tints
Dark surface#141924
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 #024fea

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#EA9D02
Analogous left#02C3EA
Analogous right#2902EA
Split-complement 1#EA2902
Split-complement 2#C3EA02
Triadic 1#EA024F
Triadic 2#4FEA02
Tetradic#EA02C3

RGB percentages

Red0.8%
Green31.0%
Blue91.8%

CMYK percentages

Cyan99.1%
Magenta66.2%
Yellow0.0%
Key (black)8.2%

Color previews

#024fea text on a black background

contrast 3.31:1

Card sample

#024fea text on a white background

contrast 6.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #024fea

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.

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

#024fea, answered

What color is #024fea?

#024fea is a balanced electric blue, closest to Royal Blue (ΔE2000 8.3). It sits at 220° on the hue wheel with 98% saturation and 46% lightness, which reads as cool.

What is the RGB value of #024fea?

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

Is #024fea a light or a dark color?

It is a dark color. Relative luminance is 0.1155 and perceived brightness is 39%, so white text on it reaches 6.35:1.

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

White. It scores 6.35:1 against #024fea, versus 3.31:1 for black — AA at any size.

What is the complementary color of #024fea?

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

What colors go well with #024fea?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B659B for secondary text, #EC6300 as an accent and #012B7E for hover and pressed states. For a palette, the analogous pair #02C3EA and #2902EA stays calm, while #EA9D02 is the loudest partner.

What is #024fea in CMYK for printing?

cmyk(99%, 66%, 0%, 8%). 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 #024fea warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #0A02EA; nudged cooler, #0053D3.

Work with #024fea in the Color Lab