Skip to content

#152eb0

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

RGB
21, 46, 176
HSL
230°, 79%, 39%
CMYK
88, 74, 0, 31
Luminance
0.0525

At a glance

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

Hex
#152eb0
Hue
230°
blue
Saturation
79%
electric
Lightness
39%
dark
Brightness
69%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0525
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.25:1
Closest name
Medium Blue
ΔE2000 7
Where it sits
Hue230° of 360°
Saturation79%
Lightness39%
Temperature
Warm ← → Cool89% 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#152eb0
RGBrgb(21, 46, 176)
HSLhsl(230, 79%, 39%)
CMYKcmyk(88%, 74%, 0%, 31%)
LABlab(27.4 41.7 -70.3)
LCHlch(27.4 81.7 300.7)
OKLCHoklch(0.391 0.204 266.3)
Decimal1388208
Display P3color(display-p3 0.082 0.180 0.690)

Copy-ready code

/* CSS */
color: #152eb0;
background-color: #152eb0;
/* Tailwind (arbitrary) */
class="text-[#152eb0] bg-[#152eb0]"
/* SCSS */
$brand: #152eb0;
/* SwiftUI */
Color(red: 0.082, green: 0.180, blue: 0.690)
/* Android */
Color.parseColor("#152eb0")
/* Flutter */
Color(0xFF152EB0)
/* Python / OpenCV (BGR) */
(176, 46, 21)

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 #152eb0 · 10.25:1
Use #ffffffAAA at every size.
Aa
White text · 10.25:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.05:1
AA fail · AA large fail · AAA fail
Reading the other direction: #152eb0 as text scores 10.25:1 on white and 2.05:1 on black.

Accessibility — WCAG contrast

Aa
#152eb0 on white: 10.25:1
AA ✓ pass · AA-large · AAA
Aa
#152eb0 on black: 2.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0048B4
deuteranopia · #0039AE
tritanopia · #00546C

Color scale — 50 to 950

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

#F3F4FC
#E6E9F9
#C7CEF5
#9BA9F3
#697EED
#3653E7
#1A39DB
#152eb0
#112692
#111F6A
#0B1442
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0B1442
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C7CEF5;
  --brand-300: #9BA9F3;
  --brand-400: #697EED;
  --brand-500: #3653E7;
  --brand-600: #1A39DB;
  --brand-700: #152eb0;
  --brand-800: #112692;
  --brand-900: #111F6A;
  --brand-950: #0B1442;
  --brand: #152eb0;
  --brand-ink: #ffffff;
}

Colors that work with #152eb0

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#F4F5FA
Tinted page background
Border#C0C7ED
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#B47111
Second voice, not a rival
Dark variant#0E1E72
Hover, pressed, headers
Light variant#E8EBFC
Selected rows, tints
Dark surface#141624
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 #152eb0

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#B09715
Analogous left#157BB0
Analogous right#4915B0
Split-complement 1#B04915
Split-complement 2#7BB015
Triadic 1#B0152E
Triadic 2#2EB015
Tetradic#B0157B

RGB percentages

Red8.2%
Green18.0%
Blue69.0%

CMYK percentages

Cyan88.1%
Magenta73.9%
Yellow0.0%
Key (black)31.0%

Color previews

#152eb0 text on a black background

contrast 2.05:1

Card sample

#152eb0 text on a white background

contrast 10.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #152eb0;
Background color
Panel with #152eb0 background
background-color: #152eb0;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #152eb0;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(21, 46, 176, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(21, 46, 176, 0.45);
Border & gradient
Gradient panel
border: 3px solid #152eb0;
background: linear-gradient(135deg, #152eb0, #6315B0);

Monochromatic scale

Palettes built from #152eb0

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.

#152eb0 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.

#152eb0, answered

What color is #152eb0?

#152eb0 is a dark electric blue, closest to Medium Blue (ΔE2000 7). It sits at 230° on the hue wheel with 79% saturation and 39% lightness, which reads as cool.

What is the RGB value of #152eb0?

rgb(21, 46, 176) — 21 red, 46 green and 176 blue out of 255, or 8.2% / 18% / 69% by channel.

Is #152eb0 a light or a dark color?

It is a dark color. Relative luminance is 0.0525 and perceived brightness is 27%, so white text on it reaches 10.25:1.

Should I use black or white text on #152eb0?

White. It scores 10.25:1 against #152eb0, versus 2.05:1 for black — AAA at any size.

What is the complementary color of #152eb0?

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

What colors go well with #152eb0?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B589B for secondary text, #B47111 as an accent and #0E1E72 for hover and pressed states. For a palette, the analogous pair #157BB0 and #4915B0 stays calm, while #B09715 is the loudest partner.

What is #152eb0 in CMYK for printing?

cmyk(88%, 74%, 0%, 31%). 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 #152eb0 warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3515B0; nudged cooler, #1348B2.

Work with #152eb0 in the Color Lab