Skip to content

#271eee

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

RGB
39, 30, 238
HSL
243°, 86%, 53%
CMYK
84, 87, 0, 7
Luminance
0.0753

At a glance

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

Hex
#271eee
Hue
243°
blue
Saturation
86%
electric
Lightness
53%
balanced
Brightness
93%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0753
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
8.38:1
Closest name
Blue
ΔE2000 2.2
Where it sits
Hue243° of 360°
Saturation86%
Lightness53%
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#271eee
RGBrgb(39, 30, 238)
HSLhsl(243, 86%, 53%)
CMYKcmyk(84%, 87%, 0%, 7%)
LABlab(33.0 69.1 -97.1)
LCHlch(33.0 119.2 305.4)
OKLCHoklch(0.453 0.281 268.7)
Decimal2563822
Display P3color(display-p3 0.153 0.118 0.933)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#271eee on white: 8.38:1
AA ✓ pass · AA-large · AAA
Aa
#271eee on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058F3
deuteranopia · #0042EB
tritanopia · #00678E

Color scale — 50 to 950

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

#F3F2FD
#E6E5FA
#C7C5F7
#9B97F7
#6962F3
#271eee
#1A11E4
#160EBE
#120B98
#110D6E
#0B0845
Base = 500Lightest = 50 · #F3F2FDDarkest = 950 · #0B0845
:root {
  --brand-50: #F3F2FD;
  --brand-100: #E6E5FA;
  --brand-200: #C7C5F7;
  --brand-300: #9B97F7;
  --brand-400: #6962F3;
  --brand-500: #271eee;
  --brand-600: #1A11E4;
  --brand-700: #160EBE;
  --brand-800: #120B98;
  --brand-900: #110D6E;
  --brand-950: #0B0845;
  --brand: #271eee;
  --brand-ink: #ffffff;
}

Colors that work with #271eee

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#C29C0A
Second voice, not a rival
Dark variant#0E0977
Hover, pressed, headers
Light variant#E8E7FD
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 #271eee

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#E5EE1E
Analogous left#1E7DEE
Analogous right#8F1EEE
Split-complement 1#EE8F1E
Split-complement 2#7DEE1E
Triadic 1#EE271E
Triadic 2#1EEE27
Tetradic#EE1E7D

RGB percentages

Red15.3%
Green11.8%
Blue93.3%

CMYK percentages

Cyan83.6%
Magenta87.4%
Yellow0.0%
Key (black)6.7%

Color previews

#271eee text on a black background

contrast 2.51:1

Card sample

#271eee text on a white background

contrast 8.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #271eee

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.

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

#271eee, answered

What color is #271eee?

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

What is the RGB value of #271eee?

rgb(39, 30, 238) — 39 red, 30 green and 238 blue out of 255, or 15.3% / 11.8% / 93.3% by channel.

Is #271eee a light or a dark color?

It is a dark color. Relative luminance is 0.0753 and perceived brightness is 34%, so white text on it reaches 8.38:1.

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

White. It scores 8.38:1 against #271eee, versus 2.51:1 for black — AAA at any size.

What is the complementary color of #271eee?

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

What colors go well with #271eee?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #C29C0A as an accent and #0E0977 for hover and pressed states. For a palette, the analogous pair #1E7DEE and #8F1EEE stays calm, while #E5EE1E is the loudest partner.

What is #271eee in CMYK for printing?

cmyk(84%, 87%, 0%, 7%). 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 #271eee 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 #731EEE; nudged cooler, #1B48F0.

Work with #271eee in the Color Lab