Skip to content

#1f2cf1

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

RGB
31, 44, 241
HSL
236°, 88%, 53%
CMYK
87, 82, 0, 6
Luminance
0.0844

At a glance

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

Hex
#1f2cf1
Hue
236°
blue
Saturation
88%
electric
Lightness
53%
balanced
Brightness
95%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0844
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.81:1
Closest name
Blue
ΔE2000 3.9
Where it sits
Hue236° of 360°
Saturation88%
Lightness53%
Temperature
Warm ← → Cool85% 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#1f2cf1
RGBrgb(31, 44, 241)
HSLhsl(236, 88%, 53%)
CMYKcmyk(87%, 82%, 0%, 6%)
LABlab(34.9 64.2 -95.6)
LCHlch(34.9 115.2 303.9)
OKLCHoklch(0.466 0.277 267.0)
Decimal2043121
Display P3color(display-p3 0.122 0.173 0.945)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f2cf1 on white: 7.81:1
AA ✓ pass · AA-large · AAA
Aa
#1f2cf1 on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DF6
deuteranopia · #0047EE
tritanopia · #006D91

Color scale — 50 to 950

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

#F2F3FD
#E5E6FA
#C4C7F8
#959CF8
#616AF5
#1f2cf1
#0E1CE6
#0C17C0
#0A139A
#0C126F
#070B45
Base = 500Lightest = 50 · #F2F3FDDarkest = 950 · #070B45
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E6FA;
  --brand-200: #C4C7F8;
  --brand-300: #959CF8;
  --brand-400: #616AF5;
  --brand-500: #1f2cf1;
  --brand-600: #0E1CE6;
  --brand-700: #0C17C0;
  --brand-800: #0A139A;
  --brand-900: #0C126F;
  --brand-950: #070B45;
  --brand: #1f2cf1;
  --brand-ink: #ffffff;
}

Colors that work with #1f2cf1

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#C0C3ED
Hairlines and dividers
Muted text#4B509B
Captions on the surface
Accent#C48908
Second voice, not a rival
Dark variant#080E78
Hover, pressed, headers
Light variant#E7E8FD
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 #1f2cf1

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#F1E41F
Analogous left#1F95F1
Analogous right#7B1FF1
Split-complement 1#F17B1F
Split-complement 2#95F11F
Triadic 1#F11F2C
Triadic 2#2CF11F
Tetradic#F11F95

RGB percentages

Red12.2%
Green17.3%
Blue94.5%

CMYK percentages

Cyan87.1%
Magenta81.7%
Yellow0.0%
Key (black)5.5%

Color previews

#1f2cf1 text on a black background

contrast 2.69:1

Card sample

#1f2cf1 text on a white background

contrast 7.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(31, 44, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 44, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f2cf1;
background: linear-gradient(135deg, #1f2cf1, #9E1FF1);

Monochromatic scale

Palettes built from #1f2cf1

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.

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

#1f2cf1, answered

What color is #1f2cf1?

#1f2cf1 is a balanced electric blue, closest to Blue (ΔE2000 3.9). It sits at 236° on the hue wheel with 88% saturation and 53% lightness, which reads as cool.

What is the RGB value of #1f2cf1?

rgb(31, 44, 241) — 31 red, 44 green and 241 blue out of 255, or 12.2% / 17.3% / 94.5% by channel.

Is #1f2cf1 a light or a dark color?

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

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

White. It scores 7.81:1 against #1f2cf1, versus 2.69:1 for black — AAA at any size.

What is the complementary color of #1f2cf1?

#F1E41F sits directly opposite on the wheel. Softer options are the split-complements #F17B1F and #95F11F, which give the same contrast with far less vibration.

What colors go well with #1f2cf1?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B509B for secondary text, #C48908 as an accent and #080E78 for hover and pressed states. For a palette, the analogous pair #1F95F1 and #7B1FF1 stays calm, while #F1E41F is the loudest partner.

What is #1f2cf1 in CMYK for printing?

cmyk(87%, 82%, 0%, 6%). 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 #1f2cf1 warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F1FF1; nudged cooler, #1D54F3.

Work with #1f2cf1 in the Color Lab