Skip to content

#1f05df

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

RGB
31, 5, 223
HSL
247°, 96%, 45%
CMYK
86, 98, 0, 13
Luminance
0.0573

At a glance

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

Hex
#1f05df
Hue
247°
blue
Saturation
96%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0573
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.79:1
Closest name
Medium Blue
ΔE2000 2.9
Where it sits
Hue247° of 360°
Saturation96%
Lightness45%
Temperature
Warm ← → Cool79% 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#1f05df
RGBrgb(31, 5, 223)
HSLhsl(247, 96%, 45%)
CMYKcmyk(86%, 98%, 0%, 13%)
LABlab(28.7 70.9 -95.7)
LCHlch(28.7 119.1 306.6)
OKLCHoklch(0.418 0.277 267.9)
Decimal2033119
Display P3color(display-p3 0.122 0.020 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#1f05df on white: 9.79:1
AA ✓ pass · AA-large · AAA
Aa
#1f05df on black: 2.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004EE4
deuteranopia · #0038DC
tritanopia · #005D83

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #1f05df 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.

#F3F1FD
#E7E4FC
#C8C1FA
#9E91FD
#6E5AFB
#3D24FA
#1f05df
#1C04C8
#1604A0
#140773
#0D0548
Base = 600Lightest = 50 · #F3F1FDDarkest = 950 · #0D0548
:root {
  --brand-50: #F3F1FD;
  --brand-100: #E7E4FC;
  --brand-200: #C8C1FA;
  --brand-300: #9E91FD;
  --brand-400: #6E5AFB;
  --brand-500: #3D24FA;
  --brand-600: #1f05df;
  --brand-700: #1C04C8;
  --brand-800: #1604A0;
  --brand-900: #140773;
  --brand-950: #0D0548;
  --brand: #1f05df;
  --brand-ink: #ffffff;
}

Colors that work with #1f05df

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#F5F4FA
Tinted page background
Border#C5C0ED
Hairlines and dividers
Muted text#544B9B
Captions on the surface
Accent#CCB100
Second voice, not a rival
Dark variant#11037D
Hover, pressed, headers
Light variant#E9E6FE
Selected rows, tints
Dark surface#161424
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 #1f05df

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#C5DF05
Analogous left#0558DF
Analogous right#8C05DF
Split-complement 1#DF8C05
Split-complement 2#58DF05
Triadic 1#DF1F05
Triadic 2#05DF1F
Tetradic#DF0558

RGB percentages

Red12.2%
Green2.0%
Blue87.5%

CMYK percentages

Cyan86.1%
Magenta97.8%
Yellow0.0%
Key (black)12.5%

Color previews

#1f05df text on a black background

contrast 2.15:1

Card sample

#1f05df text on a white background

contrast 9.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f05df

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.

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

#1f05df, answered

What color is #1f05df?

#1f05df is a dark electric blue, closest to Medium Blue (ΔE2000 2.9). It sits at 247° on the hue wheel with 96% saturation and 45% lightness, which reads as cool.

What is the RGB value of #1f05df?

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

Is #1f05df a light or a dark color?

It is a dark color. Relative luminance is 0.0573 and perceived brightness is 30%, so white text on it reaches 9.79:1.

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

White. It scores 9.79:1 against #1f05df, versus 2.15:1 for black — AAA at any size.

What is the complementary color of #1f05df?

#C5DF05 sits directly opposite on the wheel. Softer options are the split-complements #DF8C05 and #58DF05, which give the same contrast with far less vibration.

What colors go well with #1f05df?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #CCB100 as an accent and #11037D for hover and pressed states. For a palette, the analogous pair #0558DF and #8C05DF stays calm, while #C5DF05 is the loudest partner.

What is #1f05df in CMYK for printing?

cmyk(86%, 98%, 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 #1f05df warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6F05DF; nudged cooler, #0328E1.

Work with #1f05df in the Color Lab