Skip to content

#3d7aef

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

RGB
61, 122, 239
HSL
219°, 85%, 59%
CMYK
75, 49, 0, 6
Luminance
0.2114

At a glance

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

Hex
#3d7aef
Hue
219°
blue
Saturation
85%
electric
Lightness
59%
balanced
Brightness
94%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2114
WCAG relative
Temperature
Cool
95/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.23:1
Closest name
Royal Blue
ΔE2000 6.4
Where it sits
Hue219° of 360°
Saturation85%
Lightness59%
Temperature
Warm ← → Cool95% 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#3d7aef
RGBrgb(61, 122, 239)
HSLhsl(219, 85%, 59%)
CMYKcmyk(75%, 49%, 0%, 6%)
LABlab(53.1 20.2 -64.6)
LCHlch(53.1 67.7 287.3)
OKLCHoklch(0.603 0.188 261.8)
Decimal4029167
Display P3color(display-p3 0.239 0.478 0.937)

Copy-ready code

/* CSS */
color: #3d7aef;
background-color: #3d7aef;
/* Tailwind (arbitrary) */
class="text-[#3d7aef] bg-[#3d7aef]"
/* SCSS */
$brand: #3d7aef;
/* SwiftUI */
Color(red: 0.239, green: 0.478, blue: 0.937)
/* Android */
Color.parseColor("#3d7aef")
/* Flutter */
Color(0xFF3D7AEF)
/* Python / OpenCV (BGR) */
(239, 122, 61)

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#000000 on #3d7aef · 5.23:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.02:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.23:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #3d7aef as text scores 4.02:1 on white and 5.23:1 on black.

Accessibility — WCAG contrast

Aa
#3d7aef on white: 4.02:1
AA ✗ fail · AA-large · AAA
Aa
#3d7aef on black: 5.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3587F3
deuteranopia · #0077ED
tritanopia · #0096A9

Color scale — 50 to 950

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

#F2F6FC
#E5ECFA
#C5D6F7
#97B8F6
#6394F2
#3d7aef
#135AE2
#104BBC
#0C3C97
#0D2E6D
#081D44
Base = 500Lightest = 50 · #F2F6FCDarkest = 950 · #081D44
:root {
  --brand-50: #F2F6FC;
  --brand-100: #E5ECFA;
  --brand-200: #C5D6F7;
  --brand-300: #97B8F6;
  --brand-400: #6394F2;
  --brand-500: #3d7aef;
  --brand-600: #135AE2;
  --brand-700: #104BBC;
  --brand-800: #0C3C97;
  --brand-900: #0D2E6D;
  --brand-950: #081D44;
  --brand: #3d7aef;
  --brand-ink: #000000;
}

Colors that work with #3d7aef

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C0CFED
Hairlines and dividers
Muted text#4B669B
Captions on the surface
Accent#C0550C
Second voice, not a rival
Dark variant#0A2F76
Hover, pressed, headers
Light variant#E7EFFD
Selected rows, tints
Dark surface#141924
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 #3d7aef

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#EFB23D
Analogous left#3DD3EF
Analogous right#593DEF
Split-complement 1#EF593D
Split-complement 2#D3EF3D
Triadic 1#EF3D7A
Triadic 2#7AEF3D
Tetradic#EF3DD3

RGB percentages

Red23.9%
Green47.8%
Blue93.7%

CMYK percentages

Cyan74.5%
Magenta49.0%
Yellow0.0%
Key (black)6.3%

Color previews

#3d7aef text on a black background

contrast 5.23:1

Card sample

#3d7aef text on a white background

contrast 4.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #3d7aef;
Background color
Panel with #3d7aef background
background-color: #3d7aef;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #3d7aef;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(61, 122, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(61, 122, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3d7aef;
background: linear-gradient(135deg, #3d7aef, #763DEF);

Monochromatic scale

Palettes built from #3d7aef

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.

#3d7aef 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.

#3d7aef, answered

What color is #3d7aef?

#3d7aef is a balanced electric blue, closest to Royal Blue (ΔE2000 6.4). It sits at 219° on the hue wheel with 85% saturation and 59% lightness, which reads as cool.

What is the RGB value of #3d7aef?

rgb(61, 122, 239) — 61 red, 122 green and 239 blue out of 255, or 23.9% / 47.8% / 93.7% by channel.

Is #3d7aef a light or a dark color?

It is a mid-tone. Relative luminance is 0.2114 and perceived brightness is 50%, so black text on it reaches 5.23:1.

Should I use black or white text on #3d7aef?

Black. It scores 5.23:1 against #3d7aef, versus 4.02:1 for white — AA at any size.

What is the complementary color of #3d7aef?

#EFB23D sits directly opposite on the wheel. Softer options are the split-complements #EF593D and #D3EF3D, which give the same contrast with far less vibration.

What colors go well with #3d7aef?

For interface work: #F4F6FA as the surface, #C0CFED for borders, #4B669B for secondary text, #C0550C as an accent and #0A2F76 for hover and pressed states. For a palette, the analogous pair #3DD3EF and #593DEF stays calm, while #EFB23D is the loudest partner.

What is #3d7aef in CMYK for printing?

cmyk(75%, 49%, 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 #3d7aef warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #413DEF; nudged cooler, #2377EF.

Work with #3d7aef in the Color Lab