Skip to content

#274dfb

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

RGB
39, 77, 251
HSL
229°, 96%, 57%
CMYK
85, 69, 0, 2
Luminance
0.1270

At a glance

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

Hex
#274dfb
Hue
229°
blue
Saturation
96%
electric
Lightness
57%
balanced
Brightness
98%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1270
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.93:1
Closest name
Slate Blue
ΔE2000 8.6
Where it sits
Hue229° of 360°
Saturation96%
Lightness57%
Temperature
Warm ← → Cool89% 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#274dfb
RGBrgb(39, 77, 251)
HSLhsl(229, 96%, 57%)
CMYKcmyk(85%, 69%, 0%, 2%)
LABlab(42.3 50.4 -89.0)
LCHlch(42.3 102.3 299.6)
OKLCHoklch(0.523 0.258 266.4)
Decimal2575867
Display P3color(display-p3 0.153 0.302 0.984)

Copy-ready code

/* CSS */
color: #274dfb;
background-color: #274dfb;
/* Tailwind (arbitrary) */
class="text-[#274dfb] bg-[#274dfb]"
/* SCSS */
$brand: #274dfb;
/* SwiftUI */
Color(red: 0.153, green: 0.302, blue: 0.984)
/* Android */
Color.parseColor("#274dfb")
/* Flutter */
Color(0xFF274DFB)
/* Python / OpenCV (BGR) */
(251, 77, 39)

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

Accessibility — WCAG contrast

Aa
#274dfb on white: 5.93:1
AA ✓ pass · AA-large · AAA
Aa
#274dfb on black: 3.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006EFF
deuteranopia · #005AF8
tritanopia · #007E9F

Color scale — 50 to 950

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

#F1F4FD
#E4E8FC
#C1CCFA
#91A4FD
#5A77FC
#274dfb
#042FF0
#0427C8
#031FA0
#071A73
#041148
Base = 500Lightest = 50 · #F1F4FDDarkest = 950 · #041148
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E8FC;
  --brand-200: #C1CCFA;
  --brand-300: #91A4FD;
  --brand-400: #5A77FC;
  --brand-500: #274dfb;
  --brand-600: #042FF0;
  --brand-700: #0427C8;
  --brand-800: #031FA0;
  --brand-900: #071A73;
  --brand-950: #041148;
  --brand: #274dfb;
  --brand-ink: #ffffff;
}

Colors that work with #274dfb

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#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#CC7400
Second voice, not a rival
Dark variant#02187D
Hover, pressed, headers
Light variant#E6EAFF
Selected rows, tints
Dark surface#141724
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 #274dfb

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
  • 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#FBD527
Analogous left#27B7FB
Analogous right#6B27FB
Split-complement 1#FB6B27
Split-complement 2#B7FB27
Triadic 1#FB274D
Triadic 2#4DFB27
Tetradic#FB27B7

RGB percentages

Red15.3%
Green30.2%
Blue98.4%

CMYK percentages

Cyan84.5%
Magenta69.3%
Yellow0.0%
Key (black)1.6%

Color previews

#274dfb text on a black background

contrast 3.54:1

Card sample

#274dfb text on a white background

contrast 5.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #274dfb;
Background color
Panel with #274dfb background
background-color: #274dfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #274dfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(39, 77, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(39, 77, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #274dfb;
background: linear-gradient(135deg, #274dfb, #8E27FB);

Monochromatic scale

Palettes built from #274dfb

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.

#274dfb 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.

#274dfb, answered

What color is #274dfb?

#274dfb is a balanced electric blue, closest to Slate Blue (ΔE2000 8.6). It sits at 229° on the hue wheel with 96% saturation and 57% lightness, which reads as cool.

What is the RGB value of #274dfb?

rgb(39, 77, 251) — 39 red, 77 green and 251 blue out of 255, or 15.3% / 30.2% / 98.4% by channel.

Is #274dfb a light or a dark color?

It is a dark color. Relative luminance is 0.1270 and perceived brightness is 41%, so white text on it reaches 5.93:1.

Should I use black or white text on #274dfb?

White. It scores 5.93:1 against #274dfb, versus 3.54:1 for black — AA at any size.

What is the complementary color of #274dfb?

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

What colors go well with #274dfb?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #CC7400 as an accent and #02187D for hover and pressed states. For a palette, the analogous pair #27B7FB and #6B27FB stays calm, while #FBD527 is the loudest partner.

What is #274dfb in CMYK for printing?

cmyk(85%, 69%, 0%, 2%). 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 #274dfb warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4F27FB; nudged cooler, #256AFD.

Work with #274dfb in the Color Lab