Skip to content

#332dfd

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

RGB
51, 45, 253
HSL
242°, 98%, 58%
CMYK
80, 82, 0, 1
Luminance
0.0967

At a glance

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

Hex
#332dfd
Hue
242°
blue
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0967
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.16:1
Closest name
Blue
ΔE2000 4.7
Where it sits
Hue242° of 360°
Saturation98%
Lightness58%
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#332dfd
RGBrgb(51, 45, 253)
HSLhsl(242, 98%, 58%)
CMYKcmyk(80%, 82%, 0%, 1%)
LABlab(37.2 68.0 -98.5)
LCHlch(37.2 119.7 304.6)
OKLCHoklch(0.489 0.285 270.1)
Decimal3354109
Display P3color(display-p3 0.200 0.176 0.992)

Copy-ready code

/* CSS */
color: #332dfd;
background-color: #332dfd;
/* Tailwind (arbitrary) */
class="text-[#332dfd] bg-[#332dfd]"
/* SCSS */
$brand: #332dfd;
/* SwiftUI */
Color(red: 0.200, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#332dfd")
/* Flutter */
Color(0xFF332DFD)
/* Python / OpenCV (BGR) */
(253, 45, 51)

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

Accessibility — WCAG contrast

Aa
#332dfd on white: 7.16:1
AA ✓ pass · AA-large · AAA
Aa
#332dfd on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062FF
deuteranopia · #004DFA
tritanopia · #007299

Color scale — 50 to 950

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

#F2F1FD
#E4E3FC
#C2C1FB
#9390FE
#5D58FD
#332dfd
#0902F2
#0802CA
#0602A2
#090674
#060449
Base = 500Lightest = 50 · #F2F1FDDarkest = 950 · #060449
:root {
  --brand-50: #F2F1FD;
  --brand-100: #E4E3FC;
  --brand-200: #C2C1FB;
  --brand-300: #9390FE;
  --brand-400: #5D58FD;
  --brand-500: #332dfd;
  --brand-600: #0902F2;
  --brand-700: #0802CA;
  --brand-800: #0602A2;
  --brand-900: #090674;
  --brand-950: #060449;
  --brand: #332dfd;
  --brand-ink: #ffffff;
}

Colors that work with #332dfd

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#F4F4FA
Tinted page background
Border#C1C0ED
Hairlines and dividers
Muted text#4D4B9B
Captions on the surface
Accent#CC9F00
Second voice, not a rival
Dark variant#05017E
Hover, pressed, headers
Light variant#E6E6FF
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 #332dfd

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#F7FD2D
Analogous left#2D8FFD
Analogous right#9B2DFD
Split-complement 1#FD9B2D
Split-complement 2#8FFD2D
Triadic 1#FD332D
Triadic 2#2DFD33
Tetradic#FD2D8F

RGB percentages

Red20.0%
Green17.6%
Blue99.2%

CMYK percentages

Cyan79.8%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#332dfd text on a black background

contrast 2.93:1

Card sample

#332dfd text on a white background

contrast 7.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #332dfd;
Background color
Panel with #332dfd background
background-color: #332dfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #332dfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #332dfd;
background: linear-gradient(135deg, #332dfd, #BE2DFD);

Monochromatic scale

Palettes built from #332dfd

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.

#332dfd 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.

#332dfd, answered

What color is #332dfd?

#332dfd is a balanced electric blue, closest to Blue (ΔE2000 4.7). It sits at 242° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #332dfd?

rgb(51, 45, 253) — 51 red, 45 green and 253 blue out of 255, or 20% / 17.6% / 99.2% by channel.

Is #332dfd a light or a dark color?

It is a dark color. Relative luminance is 0.0967 and perceived brightness is 38%, so white text on it reaches 7.16:1.

Should I use black or white text on #332dfd?

White. It scores 7.16:1 against #332dfd, versus 2.93:1 for black — AAA at any size.

What is the complementary color of #332dfd?

#F7FD2D sits directly opposite on the wheel. Softer options are the split-complements #FD9B2D and #8FFD2D, which give the same contrast with far less vibration.

What colors go well with #332dfd?

For interface work: #F4F4FA as the surface, #C1C0ED for borders, #4D4B9B for secondary text, #CC9F00 as an accent and #05017E for hover and pressed states. For a palette, the analogous pair #2D8FFD and #9B2DFD stays calm, while #F7FD2D is the loudest partner.

What is #332dfd in CMYK for printing?

cmyk(80%, 82%, 0%, 1%). 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 #332dfd 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 #7F2DFD; nudged cooler, #2B58FF.

Work with #332dfd in the Color Lab