Skip to content

#282fec

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

RGB
40, 47, 236
HSL
238°, 84%, 54%
CMYK
83, 80, 0, 8
Luminance
0.0854

At a glance

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

Hex
#282fec
Hue
238°
blue
Saturation
84%
electric
Lightness
54%
balanced
Brightness
93%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0854
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.75:1
Closest name
Blue
ΔE2000 4.5
Where it sits
Hue238° of 360°
Saturation84%
Lightness54%
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#282fec
RGBrgb(40, 47, 236)
HSLhsl(238, 84%, 54%)
CMYKcmyk(83%, 80%, 0%, 8%)
LABlab(35.1 61.7 -92.5)
LCHlch(35.1 111.2 303.7)
OKLCHoklch(0.467 0.268 268.5)
Decimal2633708
Display P3color(display-p3 0.157 0.184 0.925)

Copy-ready code

/* CSS */
color: #282fec;
background-color: #282fec;
/* Tailwind (arbitrary) */
class="text-[#282fec] bg-[#282fec]"
/* SCSS */
$brand: #282fec;
/* SwiftUI */
Color(red: 0.157, green: 0.184, blue: 0.925)
/* Android */
Color.parseColor("#282fec")
/* Flutter */
Color(0xFF282FEC)
/* Python / OpenCV (BGR) */
(236, 47, 40)

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

Accessibility — WCAG contrast

Aa
#282fec on white: 7.75:1
AA ✓ pass · AA-large · AAA
Aa
#282fec on black: 2.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CF1
deuteranopia · #0048E9
tritanopia · #006C8F

Color scale — 50 to 950

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

#F2F3FC
#E6E6FA
#C5C7F6
#989BF6
#6469F1
#282fec
#141BE1
#1117BB
#0D1296
#0E116C
#090B44
Base = 500Lightest = 50 · #F2F3FCDarkest = 950 · #090B44
:root {
  --brand-50: #F2F3FC;
  --brand-100: #E6E6FA;
  --brand-200: #C5C7F6;
  --brand-300: #989BF6;
  --brand-400: #6469F1;
  --brand-500: #282fec;
  --brand-600: #141BE1;
  --brand-700: #1117BB;
  --brand-800: #0D1296;
  --brand-900: #0E116C;
  --brand-950: #090B44;
  --brand: #282fec;
  --brand-ink: #ffffff;
}

Colors that work with #282fec

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#C0C1ED
Hairlines and dividers
Muted text#4B4D9B
Captions on the surface
Accent#C08C0C
Second voice, not a rival
Dark variant#0A0E75
Hover, pressed, headers
Light variant#E8E8FD
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 #282fec

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#ECE528
Analogous left#2891EC
Analogous right#8328EC
Split-complement 1#EC8328
Split-complement 2#91EC28
Triadic 1#EC282F
Triadic 2#2FEC28
Tetradic#EC2891

RGB percentages

Red15.7%
Green18.4%
Blue92.5%

CMYK percentages

Cyan83.1%
Magenta80.1%
Yellow0.0%
Key (black)7.5%

Color previews

#282fec text on a black background

contrast 2.71:1

Card sample

#282fec text on a white background

contrast 7.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #282fec;
Background color
Panel with #282fec background
background-color: #282fec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #282fec;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(40, 47, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 47, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #282fec;
background: linear-gradient(135deg, #282fec, #A428EC);

Monochromatic scale

Palettes built from #282fec

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.

#282fec 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.

#282fec, answered

What color is #282fec?

#282fec is a balanced electric blue, closest to Blue (ΔE2000 4.5). It sits at 238° on the hue wheel with 84% saturation and 54% lightness, which reads as cool.

What is the RGB value of #282fec?

rgb(40, 47, 236) — 40 red, 47 green and 236 blue out of 255, or 15.7% / 18.4% / 92.5% by channel.

Is #282fec a light or a dark color?

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

Should I use black or white text on #282fec?

White. It scores 7.75:1 against #282fec, versus 2.71:1 for black — AAA at any size.

What is the complementary color of #282fec?

#ECE528 sits directly opposite on the wheel. Softer options are the split-complements #EC8328 and #91EC28, which give the same contrast with far less vibration.

What colors go well with #282fec?

For interface work: #F4F5FA as the surface, #C0C1ED for borders, #4B4D9B for secondary text, #C08C0C as an accent and #0A0E75 for hover and pressed states. For a palette, the analogous pair #2891EC and #8328EC stays calm, while #ECE528 is the loudest partner.

What is #282fec in CMYK for printing?

cmyk(83%, 80%, 0%, 8%). 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 #282fec 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 #6928EC; nudged cooler, #2658EE.

Work with #282fec in the Color Lab