Skip to content

#0d1fdf

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

RGB
13, 31, 223
HSL
235°, 89%, 46%
CMYK
94, 86, 0, 13
Luminance
0.0639

At a glance

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

Hex
#0d1fdf
Hue
235°
blue
Saturation
89%
electric
Lightness
46%
balanced
Brightness
87%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0639
WCAG relative
Temperature
Cool
86/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.22:1
Closest name
Blue
ΔE2000 3.6
Where it sits
Hue235° of 360°
Saturation89%
Lightness46%
Temperature
Warm ← → Cool86% 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#0d1fdf
RGBrgb(13, 31, 223)
HSLhsl(235, 89%, 46%)
CMYKcmyk(94%, 86%, 0%, 13%)
LABlab(30.4 64.0 -92.9)
LCHlch(30.4 112.8 304.5)
OKLCHoklch(0.428 0.270 265.3)
Decimal860127
Display P3color(display-p3 0.051 0.122 0.875)

Copy-ready code

/* CSS */
color: #0d1fdf;
background-color: #0d1fdf;
/* Tailwind (arbitrary) */
class="text-[#0d1fdf] bg-[#0d1fdf]"
/* SCSS */
$brand: #0d1fdf;
/* SwiftUI */
Color(red: 0.051, green: 0.122, blue: 0.875)
/* Android */
Color.parseColor("#0d1fdf")
/* Flutter */
Color(0xFF0D1FDF)
/* Python / OpenCV (BGR) */
(223, 31, 13)

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 #0d1fdf · 9.22:1
Use #ffffffAAA at every size.
Aa
White text · 9.22:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.28:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0d1fdf as text scores 9.22:1 on white and 2.28:1 on black.

Accessibility — WCAG contrast

Aa
#0d1fdf on white: 9.22:1
AA ✓ pass · AA-large · AAA
Aa
#0d1fdf on black: 2.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052E4
deuteranopia · #003CDC
tritanopia · #006285

Color scale — 50 to 950

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

#F2F3FD
#E5E7FB
#C4C8F8
#959DF9
#606DF6
#2B3CF3
#0d1fdf
#0B1BC1
#09159A
#0B146F
#070C46
Base = 600Lightest = 50 · #F2F3FDDarkest = 950 · #070C46
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E7FB;
  --brand-200: #C4C8F8;
  --brand-300: #959DF9;
  --brand-400: #606DF6;
  --brand-500: #2B3CF3;
  --brand-600: #0d1fdf;
  --brand-700: #0B1BC1;
  --brand-800: #09159A;
  --brand-900: #0B146F;
  --brand-950: #070C46;
  --brand: #0d1fdf;
  --brand-ink: #ffffff;
}

Colors that work with #0d1fdf

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#4B519B
Captions on the surface
Accent#C58507
Second voice, not a rival
Dark variant#071178
Hover, pressed, headers
Light variant#E7E9FE
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 #0d1fdf

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#DFCD0D
Analogous left#0D88DF
Analogous right#640DDF
Split-complement 1#DF640D
Split-complement 2#88DF0D
Triadic 1#DF0D1F
Triadic 2#1FDF0D
Tetradic#DF0D88

RGB percentages

Red5.1%
Green12.2%
Blue87.5%

CMYK percentages

Cyan94.2%
Magenta86.1%
Yellow0.0%
Key (black)12.5%

Color previews

#0d1fdf text on a black background

contrast 2.28:1

Card sample

#0d1fdf text on a white background

contrast 9.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0d1fdf;
Background color
Panel with #0d1fdf background
background-color: #0d1fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0d1fdf;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #0d1fdf

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.

#0d1fdf 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.

#0d1fdf, answered

What color is #0d1fdf?

#0d1fdf is a balanced electric blue, closest to Blue (ΔE2000 3.6). It sits at 235° on the hue wheel with 89% saturation and 46% lightness, which reads as cool.

What is the RGB value of #0d1fdf?

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

Is #0d1fdf a light or a dark color?

It is a dark color. Relative luminance is 0.0639 and perceived brightness is 31%, so white text on it reaches 9.22:1.

Should I use black or white text on #0d1fdf?

White. It scores 9.22:1 against #0d1fdf, versus 2.28:1 for black — AAA at any size.

What is the complementary color of #0d1fdf?

#DFCD0D sits directly opposite on the wheel. Softer options are the split-complements #DF640D and #88DF0D, which give the same contrast with far less vibration.

What colors go well with #0d1fdf?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B519B for secondary text, #C58507 as an accent and #071178 for hover and pressed states. For a palette, the analogous pair #0D88DF and #640DDF stays calm, while #DFCD0D is the loudest partner.

What is #0d1fdf in CMYK for printing?

cmyk(94%, 86%, 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 #0d1fdf warm or cool?

Cool — it scores 86 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #480DDF; nudged cooler, #0B45E2.

Work with #0d1fdf in the Color Lab