Skip to content

#145ef1

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

RGB
20, 94, 241
HSL
220°, 89%, 51%
CMYK
92, 61, 0, 6
Luminance
0.1451

At a glance

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

Hex
#145ef1
Hue
220°
blue
Saturation
89%
electric
Lightness
51%
balanced
Brightness
95%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1451
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.38:1
Closest name
Royal Blue
ΔE2000 4
Where it sits
Hue220° of 360°
Saturation89%
Lightness51%
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#145ef1
RGBrgb(20, 94, 241)
HSLhsl(220, 89%, 51%)
CMYKcmyk(92%, 61%, 0%, 6%)
LABlab(44.9 35.5 -79.0)
LCHlch(44.9 86.6 294.2)
OKLCHoklch(0.538 0.231 262.2)
Decimal1335025
Display P3color(display-p3 0.078 0.369 0.945)

Copy-ready code

/* CSS */
color: #145ef1;
background-color: #145ef1;
/* Tailwind (arbitrary) */
class="text-[#145ef1] bg-[#145ef1]"
/* SCSS */
$brand: #145ef1;
/* SwiftUI */
Color(red: 0.078, green: 0.369, blue: 0.945)
/* Android */
Color.parseColor("#145ef1")
/* Flutter */
Color(0xFF145EF1)
/* Python / OpenCV (BGR) */
(241, 94, 20)

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

Accessibility — WCAG contrast

Aa
#145ef1 on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#145ef1 on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0074F6
deuteranopia · #0061EE
tritanopia · #00859F

Color scale — 50 to 950

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

#F2F6FD
#E5ECFB
#C4D5F8
#95B6F9
#6092F6
#2B6EF2
#145ef1
#0B48C1
#093A9A
#0B2D6F
#071C45
Base = 600Lightest = 50 · #F2F6FDDarkest = 950 · #071C45
:root {
  --brand-50: #F2F6FD;
  --brand-100: #E5ECFB;
  --brand-200: #C4D5F8;
  --brand-300: #95B6F9;
  --brand-400: #6092F6;
  --brand-500: #2B6EF2;
  --brand-600: #145ef1;
  --brand-700: #0B48C1;
  --brand-800: #093A9A;
  --brand-900: #0B2D6F;
  --brand-950: #071C45;
  --brand: #145ef1;
  --brand-ink: #ffffff;
}

Colors that work with #145ef1

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#C55607
Second voice, not a rival
Dark variant#072D78
Hover, pressed, headers
Light variant#E7EFFE
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 #145ef1

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#F1A714
Analogous left#14CDF1
Analogous right#3914F1
Split-complement 1#F13914
Split-complement 2#CDF114
Triadic 1#F1145E
Triadic 2#5EF114
Tetradic#F114CD

RGB percentages

Red7.8%
Green36.9%
Blue94.5%

CMYK percentages

Cyan91.7%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#145ef1 text on a black background

contrast 3.90:1

Card sample

#145ef1 text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(20, 94, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(20, 94, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #145ef1;
background: linear-gradient(135deg, #145ef1, #5D14F1);

Monochromatic scale

Palettes built from #145ef1

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.

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

#145ef1, answered

What color is #145ef1?

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

What is the RGB value of #145ef1?

rgb(20, 94, 241) — 20 red, 94 green and 241 blue out of 255, or 7.8% / 36.9% / 94.5% by channel.

Is #145ef1 a light or a dark color?

It is a dark color. Relative luminance is 0.1451 and perceived brightness is 43%, so white text on it reaches 5.38:1.

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

White. It scores 5.38:1 against #145ef1, versus 3.90:1 for black — AA at any size.

What is the complementary color of #145ef1?

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

What colors go well with #145ef1?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B659B for secondary text, #C55607 as an accent and #072D78 for hover and pressed states. For a palette, the analogous pair #14CDF1 and #3914F1 stays calm, while #F1A714 is the loudest partner.

What is #145ef1 in CMYK for printing?

cmyk(92%, 61%, 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 #145ef1 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 #1B14F1; nudged cooler, #0B60E1.

Work with #145ef1 in the Color Lab