Skip to content

#1f35df

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

RGB
31, 53, 223
HSL
233°, 76%, 50%
CMYK
86, 76, 0, 13
Luminance
0.0817

At a glance

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

Hex
#1f35df
Hue
233°
blue
Saturation
76%
electric
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0817
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.98:1
Closest name
Blue
ΔE2000 5.9
Where it sits
Hue233° of 360°
Saturation76%
Lightness50%
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#1f35df
RGBrgb(31, 53, 223)
HSLhsl(233, 76%, 50%)
CMYKcmyk(86%, 76%, 0%, 13%)
LABlab(34.3 54.2 -86.3)
LCHlch(34.3 101.9 302.1)
OKLCHoklch(0.457 0.251 267.0)
Decimal2045407
Display P3color(display-p3 0.122 0.208 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f35df on white: 7.98:1
AA ✓ pass · AA-large · AAA
Aa
#1f35df on black: 2.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AE4
deuteranopia · #0047DC
tritanopia · #006989

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f35df 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
#C8CDF4
#9CA6F1
#6B7AEA
#3A4DE4
#1f35df
#192BB3
#14228F
#131C68
#0C1241
Base = 600Lightest = 50 · #F3F4FCDarkest = 950 · #0C1241
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F9;
  --brand-200: #C8CDF4;
  --brand-300: #9CA6F1;
  --brand-400: #6B7AEA;
  --brand-500: #3A4DE4;
  --brand-600: #1f35df;
  --brand-700: #192BB3;
  --brand-800: #14228F;
  --brand-900: #131C68;
  --brand-950: #0C1241;
  --brand: #1f35df;
  --brand-ink: #ffffff;
}

Colors that work with #1f35df

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#B77C15
Second voice, not a rival
Dark variant#101B70
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 #1f35df

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#DFC91F
Analogous left#1F95DF
Analogous right#691FDF
Split-complement 1#DF691F
Split-complement 2#95DF1F
Triadic 1#DF1F35
Triadic 2#35DF1F
Tetradic#DF1F95

RGB percentages

Red12.2%
Green20.8%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta76.2%
Yellow0.0%
Key (black)12.5%

Color previews

#1f35df text on a black background

contrast 2.63:1

Card sample

#1f35df text on a white background

contrast 7.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f35df

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.

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

#1f35df, answered

What color is #1f35df?

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

What is the RGB value of #1f35df?

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

Is #1f35df a light or a dark color?

It is a dark color. Relative luminance is 0.0817 and perceived brightness is 34%, so white text on it reaches 7.98:1.

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

White. It scores 7.98:1 against #1f35df, versus 2.63:1 for black — AAA at any size.

What is the complementary color of #1f35df?

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

What colors go well with #1f35df?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B549B for secondary text, #B77C15 as an accent and #101B70 for hover and pressed states. For a palette, the analogous pair #1F95DF and #691FDF stays calm, while #DFC91F is the loudest partner.

What is #1f35df in CMYK for printing?

cmyk(86%, 76%, 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 #1f35df 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 #4F1FDF; nudged cooler, #1C56E2.

Work with #1f35df in the Color Lab