Skip to content

#1b2ab9

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

RGB
27, 42, 185
HSL
234°, 75%, 42%
CMYK
85, 77, 0, 28
Luminance
0.0539

At a glance

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

Hex
#1b2ab9
Hue
234°
blue
Saturation
75%
vivid
Lightness
42%
dark
Brightness
73%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0539
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.10:1
Closest name
Medium Blue
ΔE2000 5.5
Where it sits
Hue234° of 360°
Saturation75%
Lightness42%
Temperature
Warm ← → Cool87% 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#1b2ab9
RGBrgb(27, 42, 185)
HSLhsl(234, 75%, 42%)
CMYKcmyk(85%, 77%, 0%, 28%)
LABlab(27.8 47.4 -75.0)
LCHlch(27.8 88.7 302.3)
OKLCHoklch(0.398 0.217 267.7)
Decimal1780409
Display P3color(display-p3 0.106 0.165 0.725)

Copy-ready code

/* CSS */
color: #1b2ab9;
background-color: #1b2ab9;
/* Tailwind (arbitrary) */
class="text-[#1b2ab9] bg-[#1b2ab9]"
/* SCSS */
$brand: #1b2ab9;
/* SwiftUI */
Color(red: 0.106, green: 0.165, blue: 0.725)
/* Android */
Color.parseColor("#1b2ab9")
/* Flutter */
Color(0xFF1B2AB9)
/* Python / OpenCV (BGR) */
(185, 42, 27)

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

Accessibility — WCAG contrast

Aa
#1b2ab9 on white: 10.10:1
AA ✓ pass · AA-large · AAA
Aa
#1b2ab9 on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004ABD
deuteranopia · #003AB7
tritanopia · #005670

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1b2ab9 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
#E7E8F9
#C8CCF4
#9DA5F1
#6C78EA
#3B4BE2
#1F31D6
#1b2ab9
#15208E
#131B67
#0C1140
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0C1140
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E8F9;
  --brand-200: #C8CCF4;
  --brand-300: #9DA5F1;
  --brand-400: #6C78EA;
  --brand-500: #3B4BE2;
  --brand-600: #1F31D6;
  --brand-700: #1b2ab9;
  --brand-800: #15208E;
  --brand-900: #131B67;
  --brand-950: #0C1140;
  --brand: #1b2ab9;
  --brand-ink: #ffffff;
}

Colors that work with #1b2ab9

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#C0C4ED
Hairlines and dividers
Muted text#4B529B
Captions on the surface
Accent#B67F16
Second voice, not a rival
Dark variant#10196F
Hover, pressed, headers
Light variant#E9EBFC
Selected rows, tints
Dark surface#141524
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 #1b2ab9

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#B9AA1B
Analogous left#1B79B9
Analogous right#5B1BB9
Split-complement 1#B95B1B
Split-complement 2#79B91B
Triadic 1#B91B2A
Triadic 2#2AB91B
Tetradic#B91B79

RGB percentages

Red10.6%
Green16.5%
Blue72.5%

CMYK percentages

Cyan85.4%
Magenta77.3%
Yellow0.0%
Key (black)27.5%

Color previews

#1b2ab9 text on a black background

contrast 2.08:1

Card sample

#1b2ab9 text on a white background

contrast 10.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1b2ab9;
Background color
Panel with #1b2ab9 background
background-color: #1b2ab9;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1b2ab9;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(27, 42, 185, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 42, 185, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1b2ab9;
background: linear-gradient(135deg, #1b2ab9, #751BB9);

Monochromatic scale

Palettes built from #1b2ab9

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.

#1b2ab9 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

Converts to four-color process without much drama. Proof it anyway.

#1b2ab9, answered

What color is #1b2ab9?

#1b2ab9 is a dark vivid blue, closest to Medium Blue (ΔE2000 5.5). It sits at 234° on the hue wheel with 75% saturation and 42% lightness, which reads as cool.

What is the RGB value of #1b2ab9?

rgb(27, 42, 185) — 27 red, 42 green and 185 blue out of 255, or 10.6% / 16.5% / 72.5% by channel.

Is #1b2ab9 a light or a dark color?

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

Should I use black or white text on #1b2ab9?

White. It scores 10.10:1 against #1b2ab9, versus 2.08:1 for black — AAA at any size.

What is the complementary color of #1b2ab9?

#B9AA1B sits directly opposite on the wheel. Softer options are the split-complements #B95B1B and #79B91B, which give the same contrast with far less vibration.

What colors go well with #1b2ab9?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #B67F16 as an accent and #10196F for hover and pressed states. For a palette, the analogous pair #1B79B9 and #5B1BB9 stays calm, while #B9AA1B is the loudest partner.

What is #1b2ab9 in CMYK for printing?

cmyk(85%, 77%, 0%, 28%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #1b2ab9 warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #461BB9; nudged cooler, #194ABB.

Work with #1b2ab9 in the Color Lab