Skip to content

#1f3bdf

a balanced, electric blue · cool · closest name: Blue

RGB
31, 59, 223
HSL
231°, 76%, 50%
CMYK
86, 74, 0, 13
Luminance
0.0875

At a glance

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

Hex
#1f3bdf
Hue
231°
blue
Saturation
76%
electric
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0875
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.64:1
Closest name
Blue
ΔE2000 7.1
Where it sits
Hue231° of 360°
Saturation76%
Lightness50%
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#1f3bdf
RGBrgb(31, 59, 223)
HSLhsl(231, 76%, 50%)
CMYKcmyk(86%, 74%, 0%, 13%)
LABlab(35.5 50.9 -84.4)
LCHlch(35.5 98.6 301.1)
OKLCHoklch(0.465 0.245 266.6)
Decimal2046943
Display P3color(display-p3 0.122 0.231 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f3bdf on white: 7.64:1
AA ✓ pass · AA-large · AAA
Aa
#1f3bdf on black: 2.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DE4
deuteranopia · #004ADC
tritanopia · #006C8A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f3bdf is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F4FC
#E7E9F9
#C8CEF4
#9CA9F1
#6B7EEA
#3A53E4
#1f3bdf
#192FB3
#14268F
#131F68
#0C1341
Base = 600Lightest = 50 · #F3F4FCDarkest = 950 · #0C1341
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F9;
  --brand-200: #C8CEF4;
  --brand-300: #9CA9F1;
  --brand-400: #6B7EEA;
  --brand-500: #3A53E4;
  --brand-600: #1f3bdf;
  --brand-700: #192FB3;
  --brand-800: #14268F;
  --brand-900: #131F68;
  --brand-950: #0C1341;
  --brand: #1f3bdf;
  --brand-ink: #ffffff;
}

Colors that work with #1f3bdf

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#C0C6ED
Hairlines and dividers
Muted text#4B569B
Captions on the surface
Accent#B77715
Second voice, not a rival
Dark variant#101E70
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 #1f3bdf

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
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#DFC31F
Analogous left#1F9BDF
Analogous right#631FDF
Split-complement 1#DF631F
Split-complement 2#9BDF1F
Triadic 1#DF1F3B
Triadic 2#3BDF1F
Tetradic#DF1F9B

RGB percentages

Red12.2%
Green23.1%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta73.5%
Yellow0.0%
Key (black)12.5%

Color previews

#1f3bdf text on a black background

contrast 2.75:1

Card sample

#1f3bdf text on a white background

contrast 7.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 59, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 59, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f3bdf;
background: linear-gradient(135deg, #1f3bdf, #831FDF);

Monochromatic scale

Palettes built from #1f3bdf

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.

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

#1f3bdf, answered

What color is #1f3bdf?

#1f3bdf is a balanced electric blue, closest to Blue (ΔE2000 7.1). It sits at 231° on the hue wheel with 76% saturation and 50% lightness, which reads as cool.

What is the RGB value of #1f3bdf?

rgb(31, 59, 223) — 31 red, 59 green and 223 blue out of 255, or 12.2% / 23.1% / 87.5% by channel.

Is #1f3bdf a light or a dark color?

It is a dark color. Relative luminance is 0.0875 and perceived brightness is 35%, so white text on it reaches 7.64:1.

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

White. It scores 7.64:1 against #1f3bdf, versus 2.75:1 for black — AAA at any size.

What is the complementary color of #1f3bdf?

#DFC31F sits directly opposite on the wheel. Softer options are the split-complements #DF631F and #9BDF1F, which give the same contrast with far less vibration.

What colors go well with #1f3bdf?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B569B for secondary text, #B77715 as an accent and #101E70 for hover and pressed states. For a palette, the analogous pair #1F9BDF and #631FDF stays calm, while #DFC31F is the loudest partner.

What is #1f3bdf in CMYK for printing?

cmyk(86%, 74%, 0%, 13%). 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 #1f3bdf 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 #4A1FDF; nudged cooler, #1C59E2.

Work with #1f3bdf in the Color Lab