Skip to content

#152abc

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

RGB
21, 42, 188
HSL
233°, 80%, 41%
CMYK
89, 78, 0, 26
Luminance
0.0545

At a glance

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

Hex
#152abc
Hue
233°
blue
Saturation
80%
electric
Lightness
41%
dark
Brightness
74%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0545
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.05:1
Closest name
Medium Blue
ΔE2000 5.4
Where it sits
Hue233° of 360°
Saturation80%
Lightness41%
Temperature
Warm ← → Cool88% 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#152abc
RGBrgb(21, 42, 188)
HSLhsl(233, 80%, 41%)
CMYKcmyk(89%, 78%, 0%, 26%)
LABlab(28.0 48.2 -76.5)
LCHlch(28.0 90.4 302.2)
OKLCHoklch(0.399 0.222 266.5)
Decimal1387196
Display P3color(display-p3 0.082 0.165 0.737)

Copy-ready code

/* CSS */
color: #152abc;
background-color: #152abc;
/* Tailwind (arbitrary) */
class="text-[#152abc] bg-[#152abc]"
/* SCSS */
$brand: #152abc;
/* SwiftUI */
Color(red: 0.082, green: 0.165, blue: 0.737)
/* Android */
Color.parseColor("#152abc")
/* Flutter */
Color(0xFF152ABC)
/* Python / OpenCV (BGR) */
(188, 42, 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 #152abc · 10.05:1
Use #ffffffAAA at every size.
Aa
White text · 10.05:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.09:1
AA fail · AA large fail · AAA fail
Reading the other direction: #152abc as text scores 10.05:1 on white and 2.09:1 on black.

Accessibility — WCAG contrast

Aa
#152abc on white: 10.05:1
AA ✓ pass · AA-large · AAA
Aa
#152abc on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004AC0
deuteranopia · #0039BA
tritanopia · #005772

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #152abc 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
#C7CCF5
#9AA5F4
#6878EE
#354CE8
#1931DC
#152abc
#102193
#101B6A
#0A1142
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0A1142
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C7CCF5;
  --brand-300: #9AA5F4;
  --brand-400: #6878EE;
  --brand-500: #354CE8;
  --brand-600: #1931DC;
  --brand-700: #152abc;
  --brand-800: #102193;
  --brand-900: #101B6A;
  --brand-950: #0A1142;
  --brand: #152abc;
  --brand-ink: #ffffff;
}

Colors that work with #152abc

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#C0C5ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#C07E11
Second voice, not a rival
Dark variant#0D1A73
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 #152abc

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#BCA715
Analogous left#157DBC
Analogous right#5415BC
Split-complement 1#BC5415
Split-complement 2#7DBC15
Triadic 1#BC152A
Triadic 2#2ABC15
Tetradic#BC157D

RGB percentages

Red8.2%
Green16.5%
Blue73.7%

CMYK percentages

Cyan88.8%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#152abc text on a black background

contrast 2.09:1

Card sample

#152abc text on a white background

contrast 10.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(21, 42, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(21, 42, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #152abc;
background: linear-gradient(135deg, #152abc, #7015BC);

Monochromatic scale

Palettes built from #152abc

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.

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

#152abc, answered

What color is #152abc?

#152abc is a dark electric blue, closest to Medium Blue (ΔE2000 5.4). It sits at 233° on the hue wheel with 80% saturation and 41% lightness, which reads as cool.

What is the RGB value of #152abc?

rgb(21, 42, 188) — 21 red, 42 green and 188 blue out of 255, or 8.2% / 16.5% / 73.7% by channel.

Is #152abc a light or a dark color?

It is a dark color. Relative luminance is 0.0545 and perceived brightness is 28%, so white text on it reaches 10.05:1.

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

White. It scores 10.05:1 against #152abc, versus 2.09:1 for black — AAA at any size.

What is the complementary color of #152abc?

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

What colors go well with #152abc?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B559B for secondary text, #C07E11 as an accent and #0D1A73 for hover and pressed states. For a palette, the analogous pair #157DBC and #5415BC stays calm, while #BCA715 is the loudest partner.

What is #152abc in CMYK for printing?

cmyk(89%, 78%, 0%, 26%). 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 #152abc warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3D15BC; nudged cooler, #1348BE.

Work with #152abc in the Color Lab