Skip to content

#1f2db3

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

RGB
31, 45, 179
HSL
234°, 71%, 41%
CMYK
83, 75, 0, 30
Luminance
0.0542

At a glance

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

Hex
#1f2db3
Hue
234°
blue
Saturation
71%
vivid
Lightness
41%
dark
Brightness
70%
HSV value
Perceived
28%
weighted brightness
Luminance
0.0542
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.07:1
Closest name
Medium Blue
ΔE2000 6.4
Where it sits
Hue234° of 360°
Saturation71%
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#1f2db3
RGBrgb(31, 45, 179)
HSLhsl(234, 71%, 41%)
CMYKcmyk(83%, 75%, 0%, 30%)
LABlab(27.9 43.9 -71.2)
LCHlch(27.9 83.7 301.6)
OKLCHoklch(0.397 0.206 268.5)
Decimal2043315
Display P3color(display-p3 0.122 0.176 0.702)

Copy-ready code

/* CSS */
color: #1f2db3;
background-color: #1f2db3;
/* Tailwind (arbitrary) */
class="text-[#1f2db3] bg-[#1f2db3]"
/* SCSS */
$brand: #1f2db3;
/* SwiftUI */
Color(red: 0.122, green: 0.176, blue: 0.702)
/* Android */
Color.parseColor("#1f2db3")
/* Flutter */
Color(0xFF1F2DB3)
/* Python / OpenCV (BGR) */
(179, 45, 31)

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 #1f2db3 · 10.07:1
Use #ffffffAAA at every size.
Aa
White text · 10.07: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: #1f2db3 as text scores 10.07:1 on white and 2.08:1 on black.

Accessibility — WCAG contrast

Aa
#1f2db3 on white: 10.07:1
AA ✓ pass · AA-large · AAA
Aa
#1f2db3 on black: 2.08:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0049B7
deuteranopia · #003AB1
tritanopia · #00556E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f2db3 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
#E7E9F8
#C9CDF2
#9FA7EE
#707BE6
#404FDE
#2435D1
#1f2db3
#18238B
#161D65
#0D123F
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0D123F
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F8;
  --brand-200: #C9CDF2;
  --brand-300: #9FA7EE;
  --brand-400: #707BE6;
  --brand-500: #404FDE;
  --brand-600: #2435D1;
  --brand-700: #1f2db3;
  --brand-800: #18238B;
  --brand-900: #161D65;
  --brand-950: #0D123F;
  --brand: #1f2db3;
  --brand-ink: #ffffff;
}

Colors that work with #1f2db3

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#B7811B
Second voice, not a rival
Dark variant#131B6D
Hover, pressed, headers
Light variant#E9EBFB
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 #1f2db3

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#B3A51F
Analogous left#1F77B3
Analogous right#5B1FB3
Split-complement 1#B35B1F
Split-complement 2#77B31F
Triadic 1#B31F2D
Triadic 2#2DB31F
Tetradic#B31F77

RGB percentages

Red12.2%
Green17.6%
Blue70.2%

CMYK percentages

Cyan82.7%
Magenta74.9%
Yellow0.0%
Key (black)29.8%

Color previews

#1f2db3 text on a black background

contrast 2.08:1

Card sample

#1f2db3 text on a white background

contrast 10.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 45, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 45, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f2db3;
background: linear-gradient(135deg, #1f2db3, #741FB3);

Monochromatic scale

Palettes built from #1f2db3

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.

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

#1f2db3, answered

What color is #1f2db3?

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

What is the RGB value of #1f2db3?

rgb(31, 45, 179) — 31 red, 45 green and 179 blue out of 255, or 12.2% / 17.6% / 70.2% by channel.

Is #1f2db3 a light or a dark color?

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

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

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

What is the complementary color of #1f2db3?

#B3A51F sits directly opposite on the wheel. Softer options are the split-complements #B35B1F and #77B31F, which give the same contrast with far less vibration.

What colors go well with #1f2db3?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B529B for secondary text, #B7811B as an accent and #131B6D for hover and pressed states. For a palette, the analogous pair #1F77B3 and #5B1FB3 stays calm, while #B3A51F is the loudest partner.

What is #1f2db3 in CMYK for printing?

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

Is #1f2db3 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 #471FB3; nudged cooler, #1D4CB5.

Work with #1f2db3 in the Color Lab