Skip to content

#271fd0

a balanced, vivid blue · cool · closest name: Medium Blue

RGB
39, 31, 208
HSL
243°, 74%, 47%
CMYK
81, 85, 0, 18
Luminance
0.0597

At a glance

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

Hex
#271fd0
Hue
243°
blue
Saturation
74%
vivid
Lightness
47%
balanced
Brightness
82%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0597
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
9.58:1
Closest name
Medium Blue
ΔE2000 3.6
Where it sits
Hue243° of 360°
Saturation74%
Lightness47%
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#271fd0
RGBrgb(39, 31, 208)
HSLhsl(243, 74%, 47%)
CMYKcmyk(81%, 85%, 0%, 18%)
LABlab(29.3 60.3 -86.0)
LCHlch(29.3 105.0 305.1)
OKLCHoklch(0.417 0.249 270.0)
Decimal2564048
Display P3color(display-p3 0.153 0.122 0.816)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#271fd0 on white: 9.58:1
AA ✓ pass · AA-large · AAA
Aa
#271fd0 on black: 2.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004ED5
deuteranopia · #003CCD
tritanopia · #005B7C

Color scale — 50 to 950

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

#F3F3FC
#E8E7F9
#CAC8F3
#A19DF0
#726CE9
#433CE2
#271fd0
#211AB2
#1B158E
#171367
#0F0C40
Base = 600Lightest = 50 · #F3F3FCDarkest = 950 · #0F0C40
:root {
  --brand-50: #F3F3FC;
  --brand-100: #E8E7F9;
  --brand-200: #CAC8F3;
  --brand-300: #A19DF0;
  --brand-400: #726CE9;
  --brand-500: #433CE2;
  --brand-600: #271fd0;
  --brand-700: #211AB2;
  --brand-800: #1B158E;
  --brand-900: #171367;
  --brand-950: #0F0C40;
  --brand: #271fd0;
  --brand-ink: #ffffff;
}

Colors that work with #271fd0

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#B69516
Second voice, not a rival
Dark variant#15116F
Hover, pressed, headers
Light variant#EAE9FC
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 #271fd0

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#C8D01F
Analogous left#1F70D0
Analogous right#801FD0
Split-complement 1#D0801F
Split-complement 2#70D01F
Triadic 1#D0271F
Triadic 2#1FD027
Tetradic#D01F70

RGB percentages

Red15.3%
Green12.2%
Blue81.6%

CMYK percentages

Cyan81.3%
Magenta85.1%
Yellow0.0%
Key (black)18.4%

Color previews

#271fd0 text on a black background

contrast 2.19:1

Card sample

#271fd0 text on a white background

contrast 9.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(39, 31, 208, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(39, 31, 208, 0.45);
Border & gradient
Gradient panel
border: 3px solid #271fd0;
background: linear-gradient(135deg, #271fd0, #9D1FD0);

Monochromatic scale

Palettes built from #271fd0

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.

#271fd0 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

Converts to four-color process without much drama. Proof it anyway.

#271fd0, answered

What color is #271fd0?

#271fd0 is a balanced vivid blue, closest to Medium Blue (ΔE2000 3.6). It sits at 243° on the hue wheel with 74% saturation and 47% lightness, which reads as cool.

What is the RGB value of #271fd0?

rgb(39, 31, 208) — 39 red, 31 green and 208 blue out of 255, or 15.3% / 12.2% / 81.6% by channel.

Is #271fd0 a light or a dark color?

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

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

White. It scores 9.58:1 against #271fd0, versus 2.19:1 for black — AAA at any size.

What is the complementary color of #271fd0?

#C8D01F sits directly opposite on the wheel. Softer options are the split-complements #D0801F and #70D01F, which give the same contrast with far less vibration.

What colors go well with #271fd0?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #B69516 as an accent and #15116F for hover and pressed states. For a palette, the analogous pair #1F70D0 and #801FD0 stays calm, while #C8D01F is the loudest partner.

What is #271fd0 in CMYK for printing?

cmyk(81%, 85%, 0%, 18%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #271fd0 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 #681FD0; nudged cooler, #1D46D3.

Work with #271fd0 in the Color Lab