Skip to content

#1b2db8

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

RGB
27, 45, 184
HSL
233°, 74%, 41%
CMYK
85, 76, 0, 28
Luminance
0.0557

At a glance

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

Hex
#1b2db8
Hue
233°
blue
Saturation
74%
vivid
Lightness
41%
dark
Brightness
72%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0557
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.93:1
Closest name
Medium Blue
ΔE2000 6.2
Where it sits
Hue233° of 360°
Saturation74%
Lightness41%
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#1b2db8
RGBrgb(27, 45, 184)
HSLhsl(233, 74%, 41%)
CMYKcmyk(85%, 76%, 0%, 28%)
LABlab(28.3 45.4 -73.6)
LCHlch(28.3 86.5 301.7)
OKLCHoklch(0.401 0.213 267.5)
Decimal1781176
Display P3color(display-p3 0.106 0.176 0.722)

Copy-ready code

/* CSS */
color: #1b2db8;
background-color: #1b2db8;
/* Tailwind (arbitrary) */
class="text-[#1b2db8] bg-[#1b2db8]"
/* SCSS */
$brand: #1b2db8;
/* SwiftUI */
Color(red: 0.106, green: 0.176, blue: 0.722)
/* Android */
Color.parseColor("#1b2db8")
/* Flutter */
Color(0xFF1B2DB8)
/* Python / OpenCV (BGR) */
(184, 45, 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 #1b2db8 · 9.93:1
Use #ffffffAAA at every size.
Aa
White text · 9.93:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.11:1
AA fail · AA large fail · AAA fail
Reading the other direction: #1b2db8 as text scores 9.93:1 on white and 2.11:1 on black.

Accessibility — WCAG contrast

Aa
#1b2db8 on white: 9.93:1
AA ✓ pass · AA-large · AAA
Aa
#1b2db8 on black: 2.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004BBC
deuteranopia · #003BB6
tritanopia · #005771

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1b2db8 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
#E7E9F9
#C8CDF4
#9DA7F1
#6C7BE9
#3B4FE2
#1F34D5
#1b2db8
#15238E
#131D67
#0C1240
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0C1240
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F9;
  --brand-200: #C8CDF4;
  --brand-300: #9DA7F1;
  --brand-400: #6C7BE9;
  --brand-500: #3B4FE2;
  --brand-600: #1F34D5;
  --brand-700: #1b2db8;
  --brand-800: #15238E;
  --brand-900: #131D67;
  --brand-950: #0C1240;
  --brand: #1b2db8;
  --brand-ink: #ffffff;
}

Colors that work with #1b2db8

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#4B549B
Captions on the surface
Accent#BC8017
Second voice, not a rival
Dark variant#101B6F
Hover, pressed, headers
Light variant#E9EBFC
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 #1b2db8

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#B8A61B
Analogous left#1B7CB8
Analogous right#581BB8
Split-complement 1#B8581B
Split-complement 2#7CB81B
Triadic 1#B81B2D
Triadic 2#2DB81B
Tetradic#B81B7C

RGB percentages

Red10.6%
Green17.6%
Blue72.2%

CMYK percentages

Cyan85.3%
Magenta75.5%
Yellow0.0%
Key (black)27.8%

Color previews

#1b2db8 text on a black background

contrast 2.11:1

Card sample

#1b2db8 text on a white background

contrast 9.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(27, 45, 184, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 45, 184, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1b2db8;
background: linear-gradient(135deg, #1b2db8, #721BB8);

Monochromatic scale

Palettes built from #1b2db8

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.

#1b2db8 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.

#1b2db8, answered

What color is #1b2db8?

#1b2db8 is a dark vivid blue, closest to Medium Blue (ΔE2000 6.2). It sits at 233° on the hue wheel with 74% saturation and 41% lightness, which reads as cool.

What is the RGB value of #1b2db8?

rgb(27, 45, 184) — 27 red, 45 green and 184 blue out of 255, or 10.6% / 17.6% / 72.2% by channel.

Is #1b2db8 a light or a dark color?

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

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

White. It scores 9.93:1 against #1b2db8, versus 2.11:1 for black — AAA at any size.

What is the complementary color of #1b2db8?

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

What colors go well with #1b2db8?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B549B for secondary text, #BC8017 as an accent and #101B6F for hover and pressed states. For a palette, the analogous pair #1B7CB8 and #581BB8 stays calm, while #B8A61B is the loudest partner.

What is #1b2db8 in CMYK for printing?

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

Is #1b2db8 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 #431BB8; nudged cooler, #194BBA.

Work with #1b2db8 in the Color Lab