Skip to content

#124ef1

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

RGB
18, 78, 241
HSL
224°, 89%, 51%
CMYK
93, 68, 0, 6
Luminance
0.1193

At a glance

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

Hex
#124ef1
Hue
224°
blue
Saturation
89%
electric
Lightness
51%
balanced
Brightness
95%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1193
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.20:1
Closest name
Royal Blue
ΔE2000 8.4
Where it sits
Hue224° of 360°
Saturation89%
Lightness51%
Temperature
Warm ← → Cool92% 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#124ef1
RGBrgb(18, 78, 241)
HSLhsl(224, 89%, 51%)
CMYKcmyk(93%, 68%, 0%, 6%)
LABlab(41.1 45.5 -85.4)
LCHlch(41.1 96.7 298.0)
OKLCHoklch(0.510 0.249 263.8)
Decimal1199857
Display P3color(display-p3 0.071 0.306 0.945)

Copy-ready code

/* CSS */
color: #124ef1;
background-color: #124ef1;
/* Tailwind (arbitrary) */
class="text-[#124ef1] bg-[#124ef1]"
/* SCSS */
$brand: #124ef1;
/* SwiftUI */
Color(red: 0.071, green: 0.306, blue: 0.945)
/* Android */
Color.parseColor("#124ef1")
/* Flutter */
Color(0xFF124EF1)
/* Python / OpenCV (BGR) */
(241, 78, 18)

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 #124ef1 · 6.20:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.20:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.39:1
AA fail · AA large pass · AAA fail
Reading the other direction: #124ef1 as text scores 6.20:1 on white and 3.39:1 on black.

Accessibility — WCAG contrast

Aa
#124ef1 on white: 6.20:1
AA ✓ pass · AA-large · AAA
Aa
#124ef1 on black: 3.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BF6
deuteranopia · #0057EE
tritanopia · #007C99

Color scale — 50 to 950

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

#F2F5FD
#E5EBFB
#C4D2F8
#95B0F9
#6088F6
#2B61F2
#124ef1
#0B3CC1
#09309A
#0B266F
#071845
Base = 600Lightest = 50 · #F2F5FDDarkest = 950 · #071845
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFB;
  --brand-200: #C4D2F8;
  --brand-300: #95B0F9;
  --brand-400: #6088F6;
  --brand-500: #2B61F2;
  --brand-600: #124ef1;
  --brand-700: #0B3CC1;
  --brand-800: #09309A;
  --brand-900: #0B266F;
  --brand-950: #071845;
  --brand: #124ef1;
  --brand-ink: #ffffff;
}

Colors that work with #124ef1

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#C0CCED
Hairlines and dividers
Muted text#4B609B
Captions on the surface
Accent#C56207
Second voice, not a rival
Dark variant#072678
Hover, pressed, headers
Light variant#E7EDFE
Selected rows, tints
Dark surface#141824
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 #124ef1

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#F1B512
Analogous left#12BDF1
Analogous right#4612F1
Split-complement 1#F14612
Split-complement 2#BDF112
Triadic 1#F1124E
Triadic 2#4EF112
Tetradic#F112BD

RGB percentages

Red7.1%
Green30.6%
Blue94.5%

CMYK percentages

Cyan92.5%
Magenta67.6%
Yellow0.0%
Key (black)5.5%

Color previews

#124ef1 text on a black background

contrast 3.39:1

Card sample

#124ef1 text on a white background

contrast 6.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #124ef1;
Background color
Panel with #124ef1 background
background-color: #124ef1;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #124ef1;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(18, 78, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 78, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #124ef1;
background: linear-gradient(135deg, #124ef1, #6B12F1);

Monochromatic scale

Palettes built from #124ef1

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.

#124ef1 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.

#124ef1, answered

What color is #124ef1?

#124ef1 is a balanced electric blue, closest to Royal Blue (ΔE2000 8.4). It sits at 224° on the hue wheel with 89% saturation and 51% lightness, which reads as cool.

What is the RGB value of #124ef1?

rgb(18, 78, 241) — 18 red, 78 green and 241 blue out of 255, or 7.1% / 30.6% / 94.5% by channel.

Is #124ef1 a light or a dark color?

It is a dark color. Relative luminance is 0.1193 and perceived brightness is 40%, so white text on it reaches 6.20:1.

Should I use black or white text on #124ef1?

White. It scores 6.20:1 against #124ef1, versus 3.39:1 for black — AA at any size.

What is the complementary color of #124ef1?

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

What colors go well with #124ef1?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #C56207 as an accent and #072678 for hover and pressed states. For a palette, the analogous pair #12BDF1 and #4612F1 stays calm, while #F1B512 is the loudest partner.

What is #124ef1 in CMYK for printing?

cmyk(93%, 68%, 0%, 6%). 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 #124ef1 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2812F1; nudged cooler, #0B58DF.

Work with #124ef1 in the Color Lab