Skip to content

#212eee

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

RGB
33, 46, 238
HSL
236°, 86%, 53%
CMYK
86, 81, 0, 7
Luminance
0.0845

At a glance

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

Hex
#212eee
Hue
236°
blue
Saturation
86%
electric
Lightness
53%
balanced
Brightness
93%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0845
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.81:1
Closest name
Blue
ΔE2000 4.3
Where it sits
Hue236° of 360°
Saturation86%
Lightness53%
Temperature
Warm ← → Cool85% 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#212eee
RGBrgb(33, 46, 238)
HSLhsl(236, 86%, 53%)
CMYKcmyk(86%, 81%, 0%, 7%)
LABlab(34.9 62.5 -93.9)
LCHlch(34.9 112.8 303.6)
OKLCHoklch(0.466 0.272 267.3)
Decimal2174702
Display P3color(display-p3 0.129 0.180 0.933)

Copy-ready code

/* CSS */
color: #212eee;
background-color: #212eee;
/* Tailwind (arbitrary) */
class="text-[#212eee] bg-[#212eee]"
/* SCSS */
$brand: #212eee;
/* SwiftUI */
Color(red: 0.129, green: 0.180, blue: 0.933)
/* Android */
Color.parseColor("#212eee")
/* Flutter */
Color(0xFF212EEE)
/* Python / OpenCV (BGR) */
(238, 46, 33)

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 #212eee · 7.81:1
Use #ffffffAAA at every size.
Aa
White text · 7.81:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.69:1
AA fail · AA large fail · AAA fail
Reading the other direction: #212eee as text scores 7.81:1 on white and 2.69:1 on black.

Accessibility — WCAG contrast

Aa
#212eee on white: 7.81:1
AA ✓ pass · AA-large · AAA
Aa
#212eee on black: 2.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CF3
deuteranopia · #0047EB
tritanopia · #006C90

Color scale — 50 to 950

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

#F2F3FD
#E5E7FA
#C5C8F7
#979DF7
#636CF3
#212eee
#111FE3
#0E1ABE
#0C1498
#0D136E
#080C44
Base = 500Lightest = 50 · #F2F3FDDarkest = 950 · #080C44
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E5E7FA;
  --brand-200: #C5C8F7;
  --brand-300: #979DF7;
  --brand-400: #636CF3;
  --brand-500: #212eee;
  --brand-600: #111FE3;
  --brand-700: #0E1ABE;
  --brand-800: #0C1498;
  --brand-900: #0D136E;
  --brand-950: #080C44;
  --brand: #212eee;
  --brand-ink: #ffffff;
}

Colors that work with #212eee

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#C0C3ED
Hairlines and dividers
Muted text#4B509B
Captions on the surface
Accent#C2880A
Second voice, not a rival
Dark variant#091076
Hover, pressed, headers
Light variant#E7E9FD
Selected rows, tints
Dark surface#141524
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 #212eee

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#EEE121
Analogous left#2194EE
Analogous right#7A21EE
Split-complement 1#EE7A21
Split-complement 2#94EE21
Triadic 1#EE212E
Triadic 2#2EEE21
Tetradic#EE2194

RGB percentages

Red12.9%
Green18.0%
Blue93.3%

CMYK percentages

Cyan86.1%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#212eee text on a black background

contrast 2.69:1

Card sample

#212eee text on a white background

contrast 7.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 46, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 46, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #212eee;
background: linear-gradient(135deg, #212eee, #9D21EE);

Monochromatic scale

Palettes built from #212eee

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.

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

#212eee, answered

What color is #212eee?

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

What is the RGB value of #212eee?

rgb(33, 46, 238) — 33 red, 46 green and 238 blue out of 255, or 12.9% / 18% / 93.3% by channel.

Is #212eee a light or a dark color?

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

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

White. It scores 7.81:1 against #212eee, versus 2.69:1 for black — AAA at any size.

What is the complementary color of #212eee?

#EEE121 sits directly opposite on the wheel. Softer options are the split-complements #EE7A21 and #94EE21, which give the same contrast with far less vibration.

What colors go well with #212eee?

For interface work: #F4F5FA as the surface, #C0C3ED for borders, #4B509B for secondary text, #C2880A as an accent and #091076 for hover and pressed states. For a palette, the analogous pair #2194EE and #7A21EE stays calm, while #EEE121 is the loudest partner.

What is #212eee in CMYK for printing?

cmyk(86%, 81%, 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 #212eee warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F21EE; nudged cooler, #1E55F0.

Work with #212eee in the Color Lab