Skip to content

#1b2ac3

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

RGB
27, 42, 195
HSL
235°, 76%, 44%
CMYK
86, 79, 0, 24
Luminance
0.0583

At a glance

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

Hex
#1b2ac3
Hue
235°
blue
Saturation
76%
electric
Lightness
44%
dark
Brightness
76%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0583
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.70:1
Closest name
Medium Blue
ΔE2000 5.2
Where it sits
Hue235° of 360°
Saturation76%
Lightness44%
Temperature
Warm ← → Cool86% 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#1b2ac3
RGBrgb(27, 42, 195)
HSLhsl(235, 76%, 44%)
CMYKcmyk(86%, 79%, 0%, 24%)
LABlab(29.0 50.7 -79.0)
LCHlch(29.0 93.8 302.7)
OKLCHoklch(0.409 0.229 267.4)
Decimal1780419
Display P3color(display-p3 0.106 0.165 0.765)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1b2ac3 on white: 9.70:1
AA ✓ pass · AA-large · AAA
Aa
#1b2ac3 on black: 2.17:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DC7
deuteranopia · #003CC0
tritanopia · #005A76

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1b2ac3 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
#9CA4F1
#6B77EB
#3A49E4
#1E2ED7
#1b2ac3
#141F8F
#131A68
#0C1041
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0C1041
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E8F9;
  --brand-200: #C8CCF4;
  --brand-300: #9CA4F1;
  --brand-400: #6B77EB;
  --brand-500: #3A49E4;
  --brand-600: #1E2ED7;
  --brand-700: #1b2ac3;
  --brand-800: #141F8F;
  --brand-900: #131A68;
  --brand-950: #0C1041;
  --brand: #1b2ac3;
  --brand-ink: #ffffff;
}

Colors that work with #1b2ac3

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#B78015
Second voice, not a rival
Dark variant#0F1870
Hover, pressed, headers
Light variant#E9EAFC
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 #1b2ac3

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#C3B41B
Analogous left#1B7EC3
Analogous right#601BC3
Split-complement 1#C3601B
Split-complement 2#7EC31B
Triadic 1#C31B2A
Triadic 2#2AC31B
Tetradic#C31B7E

RGB percentages

Red10.6%
Green16.5%
Blue76.5%

CMYK percentages

Cyan86.2%
Magenta78.5%
Yellow0.0%
Key (black)23.5%

Color previews

#1b2ac3 text on a black background

contrast 2.17:1

Card sample

#1b2ac3 text on a white background

contrast 9.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1b2ac3

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.

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

#1b2ac3, answered

What color is #1b2ac3?

#1b2ac3 is a dark electric blue, closest to Medium Blue (ΔE2000 5.2). It sits at 235° on the hue wheel with 76% saturation and 44% lightness, which reads as cool.

What is the RGB value of #1b2ac3?

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

Is #1b2ac3 a light or a dark color?

It is a dark color. Relative luminance is 0.0583 and perceived brightness is 29%, so white text on it reaches 9.70:1.

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

White. It scores 9.70:1 against #1b2ac3, versus 2.17:1 for black — AAA at any size.

What is the complementary color of #1b2ac3?

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

What colors go well with #1b2ac3?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #B78015 as an accent and #0F1870 for hover and pressed states. For a palette, the analogous pair #1B7EC3 and #601BC3 stays calm, while #C3B41B is the loudest partner.

What is #1b2ac3 in CMYK for printing?

cmyk(86%, 79%, 0%, 24%). 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 #1b2ac3 warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #491BC3; nudged cooler, #194BC5.

Work with #1b2ac3 in the Color Lab