Skip to content

#271df6

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

RGB
39, 29, 246
HSL
243°, 92%, 54%
CMYK
84, 88, 0, 4
Luminance
0.0796

At a glance

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

Hex
#271df6
Hue
243°
blue
Saturation
92%
electric
Lightness
54%
balanced
Brightness
96%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0796
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.10:1
Closest name
Blue
ΔE2000 2.1
Where it sits
Hue243° of 360°
Saturation92%
Lightness54%
Temperature
Warm ← → Cool82% 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#271df6
RGBrgb(39, 29, 246)
HSLhsl(243, 92%, 54%)
CMYKcmyk(84%, 88%, 0%, 4%)
LABlab(33.9 71.5 -100.1)
LCHlch(33.9 123.0 305.6)
OKLCHoklch(0.462 0.290 268.4)
Decimal2563574
Display P3color(display-p3 0.153 0.114 0.965)

Copy-ready code

/* CSS */
color: #271df6;
background-color: #271df6;
/* Tailwind (arbitrary) */
class="text-[#271df6] bg-[#271df6]"
/* SCSS */
$brand: #271df6;
/* SwiftUI */
Color(red: 0.153, green: 0.114, blue: 0.965)
/* Android */
Color.parseColor("#271df6")
/* Flutter */
Color(0xFF271DF6)
/* Python / OpenCV (BGR) */
(246, 29, 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 #271df6 · 8.10:1
Use #ffffffAAA at every size.
Aa
White text · 8.10:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.59:1
AA fail · AA large fail · AAA fail
Reading the other direction: #271df6 as text scores 8.10:1 on white and 2.59:1 on black.

Accessibility — WCAG contrast

Aa
#271df6 on white: 8.10:1
AA ✓ pass · AA-large · AAA
Aa
#271df6 on black: 2.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AFB
deuteranopia · #0044F3
tritanopia · #006B92

Color scale — 50 to 950

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

#F2F2FD
#E5E4FB
#C5C3F9
#9893FB
#645DF9
#271df6
#1409EB
#1108C4
#0D069D
#0E0971
#090647
Base = 500Lightest = 50 · #F2F2FDDarkest = 950 · #090647
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E4FB;
  --brand-200: #C5C3F9;
  --brand-300: #9893FB;
  --brand-400: #645DF9;
  --brand-500: #271df6;
  --brand-600: #1409EB;
  --brand-700: #1108C4;
  --brand-800: #0D069D;
  --brand-900: #0E0971;
  --brand-950: #090647;
  --brand: #271df6;
  --brand-ink: #ffffff;
}

Colors that work with #271df6

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#C2C0ED
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#C9A003
Second voice, not a rival
Dark variant#0A057B
Hover, pressed, headers
Light variant#E8E6FE
Selected rows, tints
Dark surface#141424
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 #271df6

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#ECF61D
Analogous left#1D7FF6
Analogous right#941DF6
Split-complement 1#F6941D
Split-complement 2#7FF61D
Triadic 1#F6271D
Triadic 2#1DF627
Tetradic#F61D7F

RGB percentages

Red15.3%
Green11.4%
Blue96.5%

CMYK percentages

Cyan84.1%
Magenta88.2%
Yellow0.0%
Key (black)3.5%

Color previews

#271df6 text on a black background

contrast 2.59:1

Card sample

#271df6 text on a white background

contrast 8.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #271df6;
Background color
Panel with #271df6 background
background-color: #271df6;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #271df6;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(39, 29, 246, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(39, 29, 246, 0.45);
Border & gradient
Gradient panel
border: 3px solid #271df6;
background: linear-gradient(135deg, #271df6, #B81DF6);

Monochromatic scale

Palettes built from #271df6

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.

#271df6 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.

#271df6, answered

What color is #271df6?

#271df6 is a balanced electric blue, closest to Blue (ΔE2000 2.1). It sits at 243° on the hue wheel with 92% saturation and 54% lightness, which reads as cool.

What is the RGB value of #271df6?

rgb(39, 29, 246) — 39 red, 29 green and 246 blue out of 255, or 15.3% / 11.4% / 96.5% by channel.

Is #271df6 a light or a dark color?

It is a dark color. Relative luminance is 0.0796 and perceived brightness is 35%, so white text on it reaches 8.10:1.

Should I use black or white text on #271df6?

White. It scores 8.10:1 against #271df6, versus 2.59:1 for black — AAA at any size.

What is the complementary color of #271df6?

#ECF61D sits directly opposite on the wheel. Softer options are the split-complements #F6941D and #7FF61D, which give the same contrast with far less vibration.

What colors go well with #271df6?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #C9A003 as an accent and #0A057B for hover and pressed states. For a palette, the analogous pair #1D7FF6 and #941DF6 stays calm, while #ECF61D is the loudest partner.

What is #271df6 in CMYK for printing?

cmyk(84%, 88%, 0%, 4%). 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 #271df6 warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #771DF6; nudged cooler, #1B47F8.

Work with #271df6 in the Color Lab